From 667ed893ed1042987dc2e37e69f92f7a7b5f7ad6 Mon Sep 17 00:00:00 2001 From: Donovan Date: Sun, 5 Jan 2025 09:02:44 -0500 Subject: [PATCH] reintroduces style switcher and adds types --- src/components/MapStyleSwitcher.tsx | 1 - src/components/PropertyMap.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/MapStyleSwitcher.tsx b/src/components/MapStyleSwitcher.tsx index d0843a11..ab2cc8db 100644 --- a/src/components/MapStyleSwitcher.tsx +++ b/src/components/MapStyleSwitcher.tsx @@ -11,7 +11,6 @@ const MapStyleSwitcher: React.FC = ({ }) => { const [activeStyle, setActiveStyle] = useState('DATAVIZ'); const [isHovered, setIsHovered] = useState(false); - type BaseMap = { name: string; img: string; diff --git a/src/components/PropertyMap.tsx b/src/components/PropertyMap.tsx index e57fe7ce..93dbc2a0 100644 --- a/src/components/PropertyMap.tsx +++ b/src/components/PropertyMap.tsx @@ -473,7 +473,7 @@ const PropertyMap: FC = ({ onError={(e) => { console.log(e); if ( - e.message === + e.error.cause === "The layer 'vacant_properties_tiles_polygons' does not exist in the map's style and cannot be queried for features." ) setHasLoadingError(true);