From 46b637142641322c565a91266914132052f8356b Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Mon, 27 Jul 2026 16:27:16 +0800 Subject: [PATCH] =?UTF-8?q?2D=E5=9C=B0=E5=9B=BE=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Map/Leaflet_Map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Map/Leaflet_Map.tsx b/src/Map/Leaflet_Map.tsx index b1295e8..7d77e7e 100644 --- a/src/Map/Leaflet_Map.tsx +++ b/src/Map/Leaflet_Map.tsx @@ -327,8 +327,8 @@ export class Leaflet_Map extends enhance.Base { const imagery = this.current_imagery_resource(); const view_config = this.map2d_tile_view(); const display_maximum_level = Math.max(imagery.minimum_level, Math.min(view_config.tile_display_maximum_level, 24)); - const max_zoom = view_config.tile_zoom_mode === "native" ? Math.min(imagery.maximum_level, display_maximum_level) : display_maximum_level; const max_native_zoom = Math.min(imagery.maximum_level, display_maximum_level); + const max_zoom = Math.max(imagery.maximum_level, display_maximum_level, 24); this.map.setMinZoom(imagery.minimum_level); this.map.setMaxZoom(max_zoom); if (this.map.getZoom() > max_zoom) {