Skip to content

Commit c8c3bdc

Browse files
committed
map bug fix
1 parent 0e9e1a8 commit c8c3bdc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/CommunityMap.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { getCommunityLocations } from '../utils/firebase';
66
import { cn } from '@/lib/utils';
77
import { countries, usStates } from '@/utils/locationData';
88

9-
// Fix Leaflet marker icon issue
10-
delete (L.Icon.Default.prototype as any)._getIconUrl;
11-
L.Icon.Default.mergeOptions({
12-
iconRetinaUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png',
13-
iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png',
14-
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png',
15-
});
9+
// // Fix Leaflet marker icon issue
10+
// delete (L.Icon.Default.prototype)._getIconUrl;
11+
// L.Icon.Default.mergeOptions({
12+
// iconRetinaUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png',
13+
// iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png',
14+
// shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png',
15+
// });
1616

1717
// Custom marker icon
1818
const customIcon = new L.Icon({

0 commit comments

Comments
 (0)