The World’s Largest Online Community for Developers
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: https://leafletjs.com/
Here is an example of what I need to achieve, but made with openlayers: https://codepen.io/lessadiogo/pen/vYEaxNa
The problem is that openlayers doesn't have a standard way to deal with tiles, and hence I get memory leak.