From 9a05c346f48e1186870cdab5c748f74432204c34 Mon Sep 17 00:00:00 2001 From: Donovan Date: Tue, 7 Jan 2025 13:21:21 -0500 Subject: [PATCH] removes logs --- src/components/MapStyleSwitcher.tsx | 5 +---- src/components/PropertyMap.tsx | 5 ----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/MapStyleSwitcher.tsx b/src/components/MapStyleSwitcher.tsx index e7ab0544..d0843a11 100644 --- a/src/components/MapStyleSwitcher.tsx +++ b/src/components/MapStyleSwitcher.tsx @@ -11,9 +11,7 @@ const MapStyleSwitcher: React.FC = ({ }) => { const [activeStyle, setActiveStyle] = useState('DATAVIZ'); const [isHovered, setIsHovered] = useState(false); - useEffect(() => { - console.log('MapStyleSwitcher rendered', handleStyleChange); - }); + type BaseMap = { name: string; img: string; @@ -38,7 +36,6 @@ const MapStyleSwitcher: React.FC = ({ const onClick = (key: string) => { setActiveStyle(key); - console.log(handleStyleChange); handleStyleChange(baseMaps[key].name); }; diff --git a/src/components/PropertyMap.tsx b/src/components/PropertyMap.tsx index 0f6d4e2c..6dfdec37 100644 --- a/src/components/PropertyMap.tsx +++ b/src/components/PropertyMap.tsx @@ -457,8 +457,6 @@ const PropertyMap: FC = ({ }; map?.on('load', () => { - console.log('Map loaded, checking layers...'); - if (!map.getLayer('vacant_properties_tiles_points')) { map.addLayer(layerStylePoints); } @@ -470,8 +468,6 @@ const PropertyMap: FC = ({ map.getLayer('vacant_properties_tiles_points') && map.getLayer('vacant_properties_tiles_polygons') ) { - console.log('Both layers found, applying filters...'); - const mapFilter = Object.entries(appFilter).reduce( (acc, [property, filterItem]) => { if (filterItem.values.length) { @@ -514,7 +510,6 @@ const PropertyMap: FC = ({ maxZoom={MAX_MAP_ZOOM} interactiveLayerIds={layers} onError={(e) => { - console.log(e); if ( e.error.cause === "The layer 'vacant_properties_tiles_polygons' does not exist in the map's style and cannot be queried for features."