Leaflet / Leaflet.VectorGrid

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

Reload tile feature request #91

Open kelvinabrokwa opened 7 years ago

kelvinabrokwa commented 7 years ago

A method that allows you to request a tile be reloaded

pbfLayer.reload(x, y, z)

Use case: I'm building a data editing app served by an on-the-fly VT service and I want to refresh tiles on the frontend whenever I make a change to a feature on the backend.

If this sounds viable I'm happy to make a pull request!

kelvinabrokwa commented 7 years ago

hmm looks like GridLayer.redraw() \~basically\~ give the desired functionality here.

Is there a way to reload just one tile though?

gregallensworth commented 6 years ago

I would say that redraw() is the way to go here. Other GridLayer systems also don't allow refreshing of a single tile, only of the layer as a whole. Same goes for other advanced systems such as Mapbox and CARTO.