This commit is contained in:
a-ill 2023-07-10 17:22:33 +03:00
parent 0f74610ae1
commit b43ab22250
8 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ export function addMarkersCommunities(map,content) {
text += fieldText + g[field] + "<br>" text += fieldText + g[field] + "<br>"
} }
} }
var greenIcon = new L.Icon({ var markerIcon = new L.Icon({
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png', iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png',
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png', shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
iconSize: [25, 41], iconSize: [25, 41],
@ -42,7 +42,7 @@ export function addMarkersCommunities(map,content) {
popupAnchor: [1, -34], popupAnchor: [1, -34],
shadowSize: [41, 41] shadowSize: [41, 41]
}); });
let marker = L.marker(coordinates, {icon: greenIcon}) let marker = L.marker(coordinates, {icon: markerIcon})
marker.addTo(map).bindPopup(text) marker.addTo(map).bindPopup(text)
} }
} }

View File

@ -48,7 +48,7 @@ export function addMarkersGroups(map,content) {
text += fieldText + g[field] + "<br>" text += fieldText + g[field] + "<br>"
} }
} }
var greenIcon = new L.Icon({ var markerIcon = new L.Icon({
iconUrl: '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-2x-green.png',
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png', shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
iconSize: [25, 41], iconSize: [25, 41],
@ -56,7 +56,7 @@ export function addMarkersGroups(map,content) {
popupAnchor: [1, -34], popupAnchor: [1, -34],
shadowSize: [41, 41] shadowSize: [41, 41]
}); });
let marker = L.marker(coordinates, {icon: greenIcon}) let marker = L.marker(coordinates, {icon: markerIcon})
marker.addTo(map).bindPopup(text) marker.addTo(map).bindPopup(text)
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB