Add mapbox navigation control & remove leaflet's map cpntainer
This commit is contained in:
parent
5bad2b11a4
commit
c9a56504ce
@ -128,6 +128,8 @@ export const ColouringMap: FC<ColouringMapProps> = ({
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
map.addControl(new mapboxgl.NavigationControl());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={mapContainer}
|
ref={mapContainer}
|
||||||
@ -140,9 +142,6 @@ export const ColouringMap: FC<ColouringMapProps> = ({
|
|||||||
right: "0",
|
right: "0",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MapContainer>
|
|
||||||
<ZoomControl position="topright" />
|
|
||||||
</MapContainer>
|
|
||||||
{mode !== "basic" && (
|
{mode !== "basic" && (
|
||||||
<>
|
<>
|
||||||
<Legend
|
<Legend
|
||||||
|
Loading…
Reference in New Issue
Block a user