Fix Residential button toggle

This commit is contained in:
Mike Simpson 2023-06-06 13:25:36 +01:00
parent afd4149021
commit 355b1078c2
2 changed files with 10 additions and 2 deletions

View File

@ -20,8 +20,15 @@ import { DataEntryGroup } from '../data-components/data-entry-group';
const UseView: React.FunctionComponent<CategoryViewProps> = (props) => {
const switchToIsDomesticMapStyle = (e) => {
e.preventDefault();
props.onMapColourScale('is_domestic')
if (props.mapColourScale == "is_domestic") {
props.onMapColourScale('landuse');
}
else {
props.onMapColourScale('is_domestic');
}
}
const { darkLightTheme } = useDisplayPreferences();
return (
<Fragment>

View File

@ -3,7 +3,8 @@
* Adjust the values here if modifying the list of styles in the tileserver.
*/
export type BuildingMapTileset = 'date_year' |
export type BuildingMapTileset =
'date_year' |
'size_height' |
'construction_core_material' |
'location' |