Compare commits
No commits in common. "5281861053565276d1a4272884176ad9e7e591b7" and "6d2e92c76e17e1078bc0aab2e74810df7f856375" have entirely different histories.
5281861053
...
6d2e92c76e
@ -17,19 +17,13 @@ import { queryClient } from "@/lib/queryClient";
|
|||||||
|
|
||||||
// Fix Leaflet default icon issue with Webpack
|
// Fix Leaflet default icon issue with Webpack
|
||||||
delete (L.Icon.Default.prototype as any)._getIconUrl;
|
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',
|
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',
|
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',
|
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]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Icona verde per marker selezionati nella patrol route
|
// Custom icon verde per marker selezionati nella patrol route
|
||||||
const greenIcon = new L.Icon({
|
const greenIcon = new L.Icon({
|
||||||
iconRetinaUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png',
|
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',
|
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-green.png',
|
||||||
@ -477,7 +471,7 @@ export default function PlanningMobile() {
|
|||||||
<Marker
|
<Marker
|
||||||
key={site.id}
|
key={site.id}
|
||||||
position={[parseFloat(site.latitude!), parseFloat(site.longitude!)]}
|
position={[parseFloat(site.latitude!), parseFloat(site.longitude!)]}
|
||||||
icon={isInRoute ? greenIcon : blueIcon}
|
icon={isInRoute ? greenIcon : undefined}
|
||||||
eventHandlers={{
|
eventHandlers={{
|
||||||
click: () => handleAddToRoute(site),
|
click: () => handleAddToRoute(site),
|
||||||
}}
|
}}
|
||||||
|
|||||||
BIN
database-backups/vigilanzaturni_v1.0.37_20251023_092311.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.37_20251023_092311.sql.gz
Normal file
Binary file not shown.
Binary file not shown.
10
version.json
10
version.json
@ -1,13 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.47",
|
"version": "1.0.46",
|
||||||
"lastUpdate": "2025-10-23T15:51:51.675Z",
|
"lastUpdate": "2025-10-23T15:23:00.124Z",
|
||||||
"changelog": [
|
"changelog": [
|
||||||
{
|
|
||||||
"version": "1.0.47",
|
|
||||||
"date": "2025-10-23",
|
|
||||||
"type": "patch",
|
|
||||||
"description": "Deployment automatico v1.0.47"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"version": "1.0.46",
|
"version": "1.0.46",
|
||||||
"date": "2025-10-23",
|
"date": "2025-10-23",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user