Test with MapContainer

This commit is contained in:
Alireza Adli 2023-11-08 13:37:39 -05:00
parent 2b099a073d
commit 44d3f20a0e

View File

@ -141,10 +141,20 @@ export const ColouringMap: FC<ColouringMapProps> = ({
left: "0", left: "0",
right: "0", right: "0",
}}*/ }}*/
>
<MapContainer
center={initialMapViewport.position}
zoom={initialMapViewport.zoom}
minZoom={9}
maxZoom={18}
doubleClickZoom={false}
zoomControl={false}
attributionControl={false}
> >
{mapColourScale && ( {mapColourScale && (
<BuildingDataLayer tileset={mapColourScale} revisionId={revisionId} /> <BuildingDataLayer tileset={mapColourScale} revisionId={revisionId} />
)} )}
</MapContainer>
{mode !== "basic" && ( {mode !== "basic" && (
<> <>
<Legend <Legend