Skip to content

Commit

Permalink
Attempt to fix marker issue
Browse files Browse the repository at this point in the history
  • Loading branch information
acoard-aot committed Sep 27, 2023
1 parent 3f6cd83 commit 61a413a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/site-search-frontend/src/pages/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import { useLocation, useSearchParams } from "react-router-dom";
import { Site } from "@/api/sites";
import { useSelector } from "react-redux";
import { LatLngExpression } from "leaflet";
// import CloseButton from 'react-bootstrap/CloseButton';
import MapDetailsPane from "@/features/map/MapDetailsPane";
import { RootState } from "@/store";
import SiteDetailsPage from "./site-details";
import UpdateMapCentre from "@/features/map/UpdateMapCentre";

// Seeing if this fixes marker being loaded in prod
import "leaflet/dist/images/marker-shadow.png";
import "leaflet/dist/images/marker-icon-2x.png";


import icon from "leaflet/dist/images/marker-icon.png";
import iconShadow from "leaflet/dist/images/marker-shadow.png";
import L from "leaflet";

let DefaultIcon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow,
});


export default function MapPage() {
Expand Down

0 comments on commit 61a413a

Please sign in to comment.