diff --git a/package.json b/package.json
index 8a2e759..79b3f30 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@hookform/resolvers": "^3.9.0",
+ "@mapbox/polyline": "^1.2.1",
"@mui/icons-material": "^5.16.7",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
diff --git a/src/assets/images/destination-icon.svg b/src/assets/images/destination-icon.svg
new file mode 100644
index 0000000..ad8a633
--- /dev/null
+++ b/src/assets/images/destination-icon.svg
@@ -0,0 +1,18 @@
+
diff --git a/src/assets/images/prev-destination-icon.svg b/src/assets/images/prev-destination-icon.svg
new file mode 100644
index 0000000..656eca3
--- /dev/null
+++ b/src/assets/images/prev-destination-icon.svg
@@ -0,0 +1,21 @@
+
diff --git a/src/assets/images/prev-source-icon.svg b/src/assets/images/prev-source-icon.svg
new file mode 100644
index 0000000..621e71a
--- /dev/null
+++ b/src/assets/images/prev-source-icon.svg
@@ -0,0 +1,21 @@
+
diff --git a/src/assets/images/source-icon.svg b/src/assets/images/source-icon.svg
new file mode 100644
index 0000000..295c9da
--- /dev/null
+++ b/src/assets/images/source-icon.svg
@@ -0,0 +1,18 @@
+
diff --git a/src/components/dashboard/roadMissions/operator/Actions/Create/Form/Area/MapControlPolyline/index.jsx b/src/components/dashboard/roadMissions/operator/Actions/Create/Form/Area/MapControlPolyline/index.jsx
index 7302f7d..0a14736 100644
--- a/src/components/dashboard/roadMissions/operator/Actions/Create/Form/Area/MapControlPolyline/index.jsx
+++ b/src/components/dashboard/roadMissions/operator/Actions/Create/Form/Area/MapControlPolyline/index.jsx
@@ -6,13 +6,13 @@ import L from "leaflet";
// ===== Icons =====
const originIcon = new L.Icon({
- iconUrl: "/icons/origin-marker.png",
+ iconUrl: "/icons/origin-icon.svg",
iconSize: [32, 32],
iconAnchor: [16, 32],
});
const destinationIcon = new L.Icon({
- iconUrl: "/icons/destination-marker.png",
+ iconUrl: "/icons/destination-icon.svg",
iconSize: [32, 32],
iconAnchor: [16, 32],
});
@@ -51,7 +51,7 @@ function FixedCenterMarker() {
pointerEvents: "none",
}}
>
-
+
);
}
@@ -87,21 +87,21 @@ export default function Example() {
height: "400px",
}}
>
-
+
- {/* saved markers */}
- {origin && }
+ {/* saved markers */}
+ {origin && }
- {destination && }
+ {destination && }
- {/* route line */}
- {origin && destination && }
+ {/* route line */}
+ {origin && destination && }
{/* fixed center pin */}
{step !== "done" && }
-
+