mirror of
https://github.com/meshtastic/web.git
synced 2026-03-13 11:27:33 -04:00
Merge pull request #153 from emailvomitcomet/enable-map-control
Enable map control
This commit is contained in:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user