Explorar el Código

Tweak zoom level of useMapBounds

Kirk Trombley hace 4 años
padre
commit
fcea60dc58
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
       }
     }