Skip to content

Commit

Permalink
Attempt to fix marker broken on prod by setting prototype image directly
Browse files Browse the repository at this point in the history
  • Loading branch information
acoard-aot committed Sep 29, 2023
1 parent 3daf90e commit 3e4f2bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/site-search-frontend/src/pages/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import L from "leaflet";
let DefaultIcon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow,
});
});

L.marker.prototype.options.icon = DefaultIcon;


export default function MapPage() {
Expand Down

0 comments on commit 3e4f2bf

Please sign in to comment.