Skip to content

Tile styling stops updating above maxNativeZoom #289

@Remideza

Description

@Remideza

To reproduce : On a L.vectorGrid.protobuf layer, set the weight of lines to a function based on zoom such as

vectorTileLayerStyles: {
    layername: function (properties, zoom) {
        console.log(zoom);
        return {
            weight: properties["stroke-width"] * (zoom + 1),
        };
    },
}

And set a maxNativeZoom

When going above the maxNativeZoom, the function still gets called but not with the actual map zoom but with the maxNativeZoom instead

I'm not sure there is a workaround around this, so reporting it as an issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions