Add mapbox navigation control & remove leaflet's map cpntainer

This commit is contained in:
Alireza Adli 2023-10-27 14:55:19 -04:00
parent 5bad2b11a4
commit c9a56504ce

View File

@ -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