Fix Residential button toggle
This commit is contained in:
parent
afd4149021
commit
355b1078c2
@ -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>
|
||||
|
@ -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' |
|
||||
|
Loading…
Reference in New Issue
Block a user