Преглед на файлове

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;
       }
     }