Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWritingCow committed Jan 4, 2025
1 parent b8d0afe commit 43ba411
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/components/PropertyMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
FC,
useEffect,
useState,
useRef,
// useRef,
Dispatch,
SetStateAction,
ReactElement,
Expand All @@ -20,7 +20,6 @@ import Map, {
Layer,
Popup,
NavigationControl,
ScaleControl,
GeolocateControl,
ViewState,
} from 'react-map-gl/maplibre';
Expand All @@ -32,7 +31,7 @@ import maplibregl, {
FillLayerSpecification,
CircleLayerSpecification,
DataDrivenPropertyValueSpecification,
IControl,
// IControl,
LngLatLike,
MapMouseEvent,
LngLat,
Expand Down Expand Up @@ -305,14 +304,6 @@ const PropertyMap: FC<PropertyMapProps> = ({

setMapController(createMapLibreGlMapController(map, maplibregl) as any);
}

return () => {
// Remove Geocoder
// if (map && geocoderRef.current) {
// map.removeControl(geocoderRef.current as unknown as IControl);
// geocoderRef.current = null;
// }
};
}, [map, setSelectedProperty]);

useEffect(() => {
Expand Down Expand Up @@ -435,7 +426,6 @@ const PropertyMap: FC<PropertyMapProps> = ({
}}
proximity={[
{
// type: 'map-center', // THIS CAUSED SOME SEARCHES FOR PHILLY ADDRESSES TO FAIL
type: 'fixed',
coordinates: [-75.1652, 39.9526], // Approxiate center of Philadelphia
},
Expand Down

0 comments on commit 43ba411

Please sign in to comment.