question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

22reactions
brunoclimacommented, May 13, 2019

This usually happens when you setView the first time without defining zoom or defining zoom incorrectly

6reactions
dagfscommented, Jul 30, 2021

I’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 })

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found