diff --git a/client/src/pages/planning-mobile.tsx b/client/src/pages/planning-mobile.tsx index 572b3b6..fac3fd3 100644 --- a/client/src/pages/planning-mobile.tsx +++ b/client/src/pages/planning-mobile.tsx @@ -17,13 +17,19 @@ import { queryClient } from "@/lib/queryClient"; // Fix Leaflet default icon issue with Webpack delete (L.Icon.Default.prototype as any)._getIconUrl; -L.Icon.Default.mergeOptions({ + +// Icona blu standard per siti non in route +const blueIcon = new L.Icon({ iconRetinaUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png', iconUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png', shadowUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png', + iconSize: [25, 41], + iconAnchor: [12, 41], + popupAnchor: [1, -34], + shadowSize: [41, 41] }); -// Custom icon verde per marker selezionati nella patrol route +// Icona verde per marker selezionati nella patrol route const greenIcon = new L.Icon({ iconRetinaUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png', iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-green.png', @@ -471,7 +477,7 @@ export default function PlanningMobile() { handleAddToRoute(site), }}