Browse Source
Merge pull request #153 from emailvomitcomet/enable-map-control
Enable map control
pull/157/head
Sacha Weatherstone
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
5 deletions
-
src/pages/Map.tsx
|
|
|
@ -73,9 +73,9 @@ export const MapPage = (): JSX.Element => { |
|
|
|
}, [map]); |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
if (map) { |
|
|
|
map?.on("load", () => { |
|
|
|
getBBox(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, [map, getBBox]); |
|
|
|
|
|
|
|
return ( |
|
|
|
@ -131,9 +131,9 @@ export const MapPage = (): JSX.Element => { |
|
|
|
dragRotate={false} |
|
|
|
touchZoomRotate={false} |
|
|
|
initialViewState={{ |
|
|
|
zoom: 10, |
|
|
|
latitude: -38, |
|
|
|
longitude: 145, |
|
|
|
zoom: 1.6, |
|
|
|
latitude: 35, |
|
|
|
longitude: 0, |
|
|
|
}} |
|
|
|
> |
|
|
|
{waypoints.map((wp) => ( |
|
|
|
|