Leaflet.VectorGrid icon indicating copy to clipboard operation
Leaflet.VectorGrid copied to clipboard

Reload tile feature request

Open kelvinabrokwa opened this issue 7 years ago • 2 comments

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 avatar Mar 23 '17 15:03 kelvinabrokwa

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

Is there a way to reload just one tile though?

kelvinabrokwa avatar Mar 23 '17 16:03 kelvinabrokwa

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.

gregallensworth avatar Apr 11 '18 18:04 gregallensworth