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