Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
600 stars 194 forks source link

Styles set per feature are not set when new tiles are loaded #33

Closed perliedman closed 7 years ago

perliedman commented 7 years ago

When the setFeatureStyle method is used, it only updates the currently loaded tiles. When a new tile, that might be part of the feature, is loaded, it will get the default styling. This can appear as tears between tiles, and also makes overridden styles disappear once the map is zoomed.

lediur commented 7 years ago

I've also noticed this - if I add a vector grid layer to the map, and then immediately try to set styles on it (as part of a React app), no styles get applied since the vector tiles haven't been loaded yet.