diff --git a/web/src/components/LeafletMap.tsx b/web/src/components/LeafletMap.tsx
index 02982625..5e9394b3 100644
--- a/web/src/components/LeafletMap.tsx
+++ b/web/src/components/LeafletMap.tsx
@@ -1,7 +1,14 @@
-import { LatLng } from "leaflet";
+import { DivIcon, LatLng } from "leaflet";
+import { MapPinIcon } from "lucide-react";
import { useEffect, useState } from "react";
+import ReactDOMServer from "react-dom/server";
import { MapContainer, Marker, TileLayer, useMapEvents } from "react-leaflet";
+const markerIcon = new DivIcon({
+ className: "border-none",
+ html: ReactDOMServer.renderToString(),
+});
+
interface MarkerProps {
position: LatLng | undefined;
onChange: (position: LatLng) => void;
@@ -26,7 +33,7 @@ const LocationMarker = (props: MarkerProps) => {
map.locate();
}, []);
- return position === undefined ? null : ;
+ return position === undefined ? null : ;
};
interface MapProps {
@@ -37,7 +44,7 @@ interface MapProps {
const LeafletMap = (props: MapProps) => {
return (
-
+
{}} />
);