Skip to content

Commit

Permalink
removes logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanAndrews300 committed Jan 7, 2025
1 parent dc84a95 commit 9a05c34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions src/components/MapStyleSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const MapStyleSwitcher: React.FC<MapStyleSwitcherProps> = ({
}) => {
const [activeStyle, setActiveStyle] = useState('DATAVIZ');
const [isHovered, setIsHovered] = useState(false);
useEffect(() => {
console.log('MapStyleSwitcher rendered', handleStyleChange);
});

type BaseMap = {
name: string;
img: string;
Expand All @@ -38,7 +36,6 @@ const MapStyleSwitcher: React.FC<MapStyleSwitcherProps> = ({

const onClick = (key: string) => {
setActiveStyle(key);
console.log(handleStyleChange);
handleStyleChange(baseMaps[key].name);
};

Expand Down
5 changes: 0 additions & 5 deletions src/components/PropertyMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,6 @@ const PropertyMap: FC<PropertyMapProps> = ({
};

map?.on('load', () => {
console.log('Map loaded, checking layers...');

if (!map.getLayer('vacant_properties_tiles_points')) {
map.addLayer(layerStylePoints);
}
Expand All @@ -470,8 +468,6 @@ const PropertyMap: FC<PropertyMapProps> = ({
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) {
Expand Down Expand Up @@ -514,7 +510,6 @@ const PropertyMap: FC<PropertyMapProps> = ({
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."
Expand Down

0 comments on commit 9a05c34

Please sign in to comment.