react-leaflet icon indicating copy to clipboard operation
react-leaflet copied to clipboard

Tiles are unloading still when using maxNativeZoom

Open MarshMello0 opened this issue 1 year ago • 2 comments

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.

  1. Set maxZoom to 22
  2. Set maxNativeZoom to 19
  3. Zoom in to max and see the tiles unload Stackblitz Example

MarshMello0 avatar Nov 11 '22 17:11 MarshMello0