diff --git a/pages/project/north-america-hospital-distance/index.tsx b/pages/project/north-america-hospital-distance/index.tsx index 1027fc12..77761254 100644 --- a/pages/project/north-america-hospital-distance/index.tsx +++ b/pages/project/north-america-hospital-distance/index.tsx @@ -71,6 +71,17 @@ const Map = () => { if (error) throw error; map.current?.addImage('hospitalMarker', image); }) + + map.current.fitBounds([ + [ + -127.66160226468281, + 15.666577841851748 + ], // southwestern corner of the bounds + [ + -61.00992217769965, + 52.83448773865328 + ], // northeastern corner of the bounds + ]); }); return ( diff --git a/pages/project/virginia-hospital-distance/index.tsx b/pages/project/virginia-hospital-distance/index.tsx index 0a6ed5cd..6225fcce 100644 --- a/pages/project/virginia-hospital-distance/index.tsx +++ b/pages/project/virginia-hospital-distance/index.tsx @@ -73,6 +73,17 @@ const Map = () => { if (error) throw error; map.current?.addImage('hospitalMarker', image); }) + + map.current.fitBounds([ + [ + -83.79043169282795, + 36.53531313954011 + ], // southwestern corner of the bounds + [ + -74.96413368319128, + 39.511129595313434 + ], // northeastern corner of the bounds + ]); }); return (