Преглед изворни кода

Tweak zoom level of useMapBounds

Kirk Trombley пре 4 година
родитељ
комит
fcea60dc58
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/src/hooks/useMapBounds.jsx

+ 1 - 1
client/src/hooks/useMapBounds.jsx

@@ -14,7 +14,7 @@ const useMapBounds = (mapRef, country) => {
       if (bounds) {
         mapRef.current.fitBounds(bounds);
         mapRef.current.panToBounds(bounds);
-        mapRef.current.setZoom(2);
+        mapRef.current.setZoom(3);
         done.current = true;
       }
     }