浏览代码

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) {
       if (bounds) {
         mapRef.current.fitBounds(bounds);
         mapRef.current.fitBounds(bounds);
         mapRef.current.panToBounds(bounds);
         mapRef.current.panToBounds(bounds);
-        mapRef.current.setZoom(2);
+        mapRef.current.setZoom(3);
         done.current = true;
         done.current = true;
       }
       }
     }
     }