javascript - Updating data in Vector Tiles Leaflet geojson-vt -


my question updating data in leaflet. let's assume have geojson changing vector tiles using geojson-vt.js , displaying on leaflet map. similiary there: geojson-vt example

then i'm receiving event / notifiaction linestring changed, example thise linestrings have attribute color, using when displaying data, , value has changed.

then want update map, dont want recalculate, , redraw tiles, tiles change. how that?

it cannot done. geojson-vt allows creating new geojson-vt instances, not updating them. updating data in internal structures complicated, , doesn't give big advantages. means it's not possible list of changed tiles, or list of tiles containing updated geometry.

if critical application, consider studying code geojson-vt yourself, , proposing solution.

if have set of static features , set of possibly-changing features, consider making separate holders them.


Comments