Maximum call stack size exceeded with "maxNativeZoom"
See original GitHub issueHello!
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: '© <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:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top 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 >
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 Free
Top 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

“leaflet-active-area”: “https://github.com/Mappy/Leaflet-active-area.git”
did fix it for me ! thanks!!!
Just published release 1.1.1 with the fix.