Merge pull request #153 from emailvomitcomet/enable-map-control
Enable map control
This commit is contained in:
+5
-5
@@ -73,9 +73,9 @@ export const MapPage = (): JSX.Element => {
|
|||||||
}, [map]);
|
}, [map]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (map) {
|
map?.on("load", () => {
|
||||||
getBBox();
|
getBBox();
|
||||||
}
|
});
|
||||||
}, [map, getBBox]);
|
}, [map, getBBox]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -131,9 +131,9 @@ export const MapPage = (): JSX.Element => {
|
|||||||
dragRotate={false}
|
dragRotate={false}
|
||||||
touchZoomRotate={false}
|
touchZoomRotate={false}
|
||||||
initialViewState={{
|
initialViewState={{
|
||||||
zoom: 10,
|
zoom: 1.6,
|
||||||
latitude: -38,
|
latitude: 35,
|
||||||
longitude: 145,
|
longitude: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{waypoints.map((wp) => (
|
{waypoints.map((wp) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user