Browse Source

Tweak zoom level of useMapBounds

Kirk Trombley 4 năm trước cách đây
mục cha
commit
fcea60dc58
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
       }
     }