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.

Maximum call stack size exceeded with "maxNativeZoom"

See original GitHub issue

Hello!

I found out that if “maxNativeZoom” is used and it is exactly 2 less then “maxZoom” when maximum zoom reached - " Maximum call stack size exceeded " is thrown.


 L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
            attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
            maxNativeZoom: 14,
            maxZoom: 16,
            minZoom: 11,
        }).addTo(map);


It should be exactly “maxZoom” - “maxNativeZoom” === 2 to get the error. I have tested it with your example.

"leaflet": "^1.4.0", "leaflet-active-area": "^1.1.0"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
strimbobcommented, Oct 14, 2019

“leaflet-active-area”: “https://github.com/Mappy/Leaflet-active-area.git

did fix it for me ! thanks!!!

1reaction
paulgregcommented, Oct 28, 2019

Just published release 1.1.1 with the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
JavaScript RangeError: Maximum Call Stack Size Exceeded
The RangeError: Maximum call stack size exceeded is thrown when a function call is made that exceeds the call stack size.
Read more >
There was a problem in setStyle Feature "Uncaught RangeError
It only added the color for the first time and then encountered the "Uncaught RangeError: Maximum call stack size overlapped" error.
Read more >
Line: 81: Error: Maximum call stack size exceeded
Error message: Line: 81: Error: Maximum call stack size exceeded. This is happening whenever student tries to press space to get rid of...
Read more >
RangeError: Maximum call stack size exceeded? - Codecademy
We only really exceed call stack size when we're running a recursive function that has gone off the rails, which is why I...
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