From 20724b82a2545b7efdd301f08bb5ff8c974a5179 Mon Sep 17 00:00:00 2001 From: Zulfikar Akbar Muzakki Date: Thu, 24 Oct 2024 08:55:05 +0700 Subject: [PATCH] Increase max zoom level --- django_project/minisass_frontend/src/components/Map/Map.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_project/minisass_frontend/src/components/Map/Map.tsx b/django_project/minisass_frontend/src/components/Map/Map.tsx index 4282747a6..7c78be2c6 100644 --- a/django_project/minisass_frontend/src/components/Map/Map.tsx +++ b/django_project/minisass_frontend/src/components/Map/Map.tsx @@ -47,7 +47,7 @@ const initialMapConfig = { style: [], zoom: 5.3695883239884745, attributionControl: false, - maxZoom: 17, + maxZoom: 24, }; /** @@ -94,7 +94,7 @@ export const Map = forwardRef((props: Interface, ref) => { center: [longitude, latitude], zoom: 5.3695883239884745, attributionControl: false, - maxZoom: 17 + maxZoom: 24 } ).addControl( new maplibregl.AttributionControl({ compact: true }) @@ -300,7 +300,7 @@ export const Map = forwardRef((props: Interface, ref) => { mapInstance.flyTo({ center: [longitude, latitude], - zoom: 17, + zoom: 24, essential: true }); };