react-leaflet
react-leaflet copied to clipboard
Tiles are unloading still when using maxNativeZoom
Bug report in v4
- [x] All peer dependencies are installed: React, ReactDOM and Leaflet.
- [x] Using the latest version of React and ReactDOM v18.
- [x] Using the supported version of Leaflet (v1.8.0 minimum) and its corresponding CSS file is loaded.
- [x] Using the latest v4 version of React-Leaflet.
- [x] The issue has not already been reported.
- [x] Make sure you have followed the quick start guide for Leaflet.
- [x] Make sure you have fully read the documentation and that you understand the limitations.
Expected behavior
The tiles last loaded should stay visiable.
Actual behavior
The tiles unload.
Steps to reproduce
Using OSM for this.
- Set
maxZoom
to22
- Set
maxNativeZoom
to19
- Zoom in to max and see the tiles unload Stackblitz Example