Ver Fonte

Tweak zoom level of useMapBounds

Kirk Trombley há 4 anos atrás
pai
commit
fcea60dc58
1 ficheiros alterados com 1 adições e 1 exclusões
  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;
       }
     }