Error Attempted to load an infinite number of tiles
See original GitHub issue- I’m reporting a bug, not asking for help; support questions like “How can I do X with Leaflet?” will be closed (use Stack Overflow or gis.stackexchange.com for questions)
- I’ve looked at the documentation to make sure the behaviour is documented and expected
- I’m sure this is a Leaflet code issue, not an issue with my own code nor with the framework I’m using (Cordova, Ionic, Angular, React…)
- I’ve searched through the issues to make sure it’s not yet reported
How to reproduce
- Leaflet version I’m using:
- Browser (with version) I’m using: Chrome 70.0.3538
- OS/Platform (with version) I’m using: Windows 10
- Unclear how to reproduce this, I am getting bug tracking error logs from users.
Error Attempted to load an infinite number of tiles
node_modules/leaflet/dist/leaflet-src.js:11116:37 e._update
node_modules/leaflet/dist/leaflet-src.js:11082 e._onMoveEnd
node_modules/leaflet/dist/leaflet-src.js:593 e.fire
node_modules/leaflet/dist/leaflet-src.js:3303 e.panBy
node_modules/leaflet/dist/leaflet-src.js:4531 e._tryAnimatedPan
node_modules/leaflet/dist/leaflet-src.js:3181 e.setView
node_modules/leaflet/dist/leaflet-src.js:3293 e.panTo
node_modules/vue2-leaflet/dist/vue2-leaflet.min.js:1:25596 c.setCenter
node_modules/vue2-leaflet/dist/vue2-leaflet.min.js:1:1493 c.o.(anonymous function).custom.r.$watch.deep
node_modules/vue/dist/vue.common.js:3235 Xe.I3G/.Xe.run
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Leaflet Zoom on WMS-Layers - Error: Attempted to load an ...
I use Leaflet 1.5.1 for showing WMS layers on a GeoServer 2.15.1. I can only zoom up to zoom level 14. If I...
Read more >leaflet.js is trying to load tiles beyond bounds
Leaflet 0.7 has a bug where it attempts to load tiles touching the bounds of the map, not just ones that are intersecting...
Read more >Map - Attempted to load an infinite number of tiles
Hi. I'm getting the following error when viewing (frontend) the map element from Yootheme Pro builder GridLayer.js:661 Uncaught (in promise) ...
Read more >'Leaflet map' Custom Component issues - UI Builder
'Zoom Logic' bind value (Page Data property 'zoomLevel') causes error “Error: Attempted to load an infinite number of tiles”.
Read more >GridLayer.js:661 Uncaught Error: Attempted to load an infinite ...
GIS: Leaflet with EPSG:3765; GridLayer.js:661 Uncaught Error : Attempted to load an infinite number of tilesHelpful?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This usually happens when you
setView
the first time without definingzoom
or definingzoom
incorrectlyI’m probably working on a problem similar to @hanneolsen with a custom map and projection.
The solution we ended up with was to specify min and max zoom levels when initiating the Leaflet map. I think this approach is beneficial as it should cover other situations other than the fitbounds case.
L.map("map", { crs: projection, minZoom: 3, maxZoom: 16 })