How do I abort outstanding map tile request with leaflet when the zoom changes?

173 views
Skip to first unread message

Александр Гурьянов

unread,
Feb 2, 2015, 4:44:53 AM2/2/15
to leafl...@googlegroups.com

I have an Leaflet map with a TMS layer. For each zoom change, my map makes about 20-50 requests for map tiles (depending on the map/zoom/screen size). If the user rapidly zooms in or out, all these map tile requests get queued up. Even if zoom is not visible, all it's tiles will be loaded. It is possible to configure Leaflet to cancel ajax request for invisible tiles, like openlayers does.

Reply all
Reply to author
Forward
0 new messages