add directory assets

This commit is contained in:
Amirhossein Mahmoodi
2024-08-05 13:37:19 +03:30
parent 3e318d559e
commit f4c1a1687c
6 changed files with 6 additions and 5 deletions

View File

@@ -1,10 +1,9 @@
import { useRef } from "react";
import { Marker, useMapEvents } from "react-leaflet";
const prefix = process.env.NODE_ENV === "production" ? "/v3" : "";
import LocationMarker from "@/assets/images/locationMarker.png";
const locationMarker = L.icon({
iconUrl: prefix + "/images/locationMarker.png",
iconUrl: LocationMarker.src,
iconSize: [50, 50],
iconAnchor: [25, 50],
});