This commit is contained in:
Alireza Adli 2023-11-08 14:02:48 -05:00
parent ca225e969b
commit aa19dd40ff

View File

@ -142,56 +142,6 @@ export const ColouringMap: FC<ColouringMapProps> = ({
right: "0", right: "0",
}}*/ }}*/
> >
<MapContainer
center={initialMapViewport.position}
zoom={initialMapViewport.zoom}
minZoom={9}
maxZoom={18}
doubleClickZoom={false}
zoomControl={false}
attributionControl={false}
>
<ClickHandler onClick={handleClick} />
<MapViewport position={position} zoom={zoom} />
<Pane key={darkLightTheme} name={"cc-base-pane"} style={{ zIndex: 50 }}>
<CityMap theme={darkLightTheme} />
<BuildingBaseLayer theme={darkLightTheme} />
</Pane>
<Pane
name="cc-overlay-pane-shown-behind-buildings"
style={{ zIndex: 199 }}
>
<ConservationAreaBoundaryLayer />
</Pane>
{mapColourScale && (
<BuildingDataLayer tileset={mapColourScale} revisionId={revisionId} />
)}
<Pane name="cc-overlay-pane" style={{ zIndex: 300 }}>
<CityBoundaryLayer />
<HistoricDataLayer revisionId={revisionId} />
<HistoricMapLayer revisionId={revisionId} />
<BoroughBoundaryLayer />
<ParcelBoundaryLayer />
<FloodBoundaryLayer />
<VistaBoundaryLayer />
<HousingBoundaryLayer />
<CreativeBoundaryLayer />
<BuildingNumbersLayer revisionId={revisionId} />
{selectedBuildingId && (
<BuildingHighlightLayer
selectedBuildingId={selectedBuildingId}
baseTileset={mapColourScale}
/>
)}
</Pane>
<Pane name="cc-label-overlay-pane" style={{ zIndex: 1000 }}>
<BoroughLabelLayer />
</Pane>
<ZoomControl position="topright" />
<AttributionControl prefix="" />
</MapContainer>
{mode !== "basic" && ( {mode !== "basic" && (
<> <>
<Legend <Legend