The World’s Largest Online Community for Developers

'; javascript - Is it possible to access leaflet tiles to perform image updates? - LavOzs.Com

I am new at leaflet js, and I would like to know if os possible to access the tiles instances somehow to change its image.

I couldn't find this on the docs. I know that is possible to use getTileUrl function in order to use custom images, but what I need is being able to pick whatever tile I want based on a coordinate or extent, and change its image. Is that possible from the leaflet current functionalities?

This is the library I am talking about, just to avoid doubts:

Here is an example of what I need to achieve, but made with openlayers:

The problem is that openlayers doesn't have a standard way to deal with tiles, and hence I get memory leak.



Converting images from one geospatial coordinate system to another
How to draw circle or rectangle on tile images leaflet.js
How to show busy icon when leaflet api load tile images
NASA tiles with leaflet in R
Match center of a Tile Layer with center of the Map on Leaflet
leaflet js + gMapCatcher tiles at zoom -2 not rendering
Leaflet - Changing All Layers
Render Icon on custom floor tiles using OSM & Leaflet