Skip to content

Commit

Permalink
Merge pull request #1434 from matkoniecz/feature/show_more_interface_…
Browse files Browse the repository at this point in the history
…elements_by_default

Now only legend is hidden in basic view mode.
  • Loading branch information
matkoniecz authored Nov 20, 2024
2 parents bb7ba04 + 45f182a commit 7ab2ede
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions app/src/frontend/map/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,29 +162,29 @@ export const ColouringMap : FC<ColouringMapProps> = ({
mode !== 'basic' &&
<>
<Legend mapColourScaleDefinitions={categoryMapDefinitions} mapColourScale={mapColourScale} onMapColourScale={onMapColourScale}/>
<div className="switchers-of-layers-map-menu">
<ThemeSwitcher onSubmit={darkLightThemeSwitch} currentTheme={darkLightTheme} />
<DataLayerSwitcher />
{
(showLayerSelection == "enabled") ?
<>
<BoroughSwitcher/>
<ParcelSwitcher/>
<FloodSwitcher/>
<ConservationAreaSwitcher/>
{ /* <HistoricMapSwitcher/> */ }
{ /* <HistoricDataSwitcher/> */ }
<VistaSwitcher />
<HousingSwitcher />
<CreativeSwitcher />
{ /* <EditableBuildingsSwitcher /> */ }
</>
: <></>
}
</div>
<SearchBox onLocate={handleLocate} />
</>
}
<div className="switchers-of-layers-map-menu">
<ThemeSwitcher onSubmit={darkLightThemeSwitch} currentTheme={darkLightTheme} />
<DataLayerSwitcher />
{
(showLayerSelection == "enabled") ?
<>
<BoroughSwitcher/>
<ParcelSwitcher/>
<FloodSwitcher/>
<ConservationAreaSwitcher/>
{ /* <HistoricMapSwitcher/> */ }
{ /* <HistoricDataSwitcher/> */ }
<VistaSwitcher />
<HousingSwitcher />
<CreativeSwitcher />
{ /* <EditableBuildingsSwitcher /> */ }
</>
: <></>
}
</div>
<SearchBox onLocate={handleLocate} />
</div>
);
}
Expand Down

0 comments on commit 7ab2ede

Please sign in to comment.