Update
This commit is contained in:
parent
b3884131d0
commit
2ef247304d
|
@ -34,7 +34,7 @@ export function addMarkersCommunities(map,content) {
|
|||
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',
|
||||
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
||||
iconSize: [25, 41],
|
||||
|
@ -42,7 +42,7 @@ export function addMarkersCommunities(map,content) {
|
|||
popupAnchor: [1, -34],
|
||||
shadowSize: [41, 41]
|
||||
});
|
||||
let marker = L.marker(coordinates, {icon: greenIcon})
|
||||
let marker = L.marker(coordinates, {icon: markerIcon})
|
||||
marker.addTo(map).bindPopup(text)
|
||||
}
|
||||
}
|
|
@ -48,7 +48,7 @@ export function addMarkersGroups(map,content) {
|
|||
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',
|
||||
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
||||
iconSize: [25, 41],
|
||||
|
@ -56,7 +56,7 @@ export function addMarkersGroups(map,content) {
|
|||
popupAnchor: [1, -34],
|
||||
shadowSize: [41, 41]
|
||||
});
|
||||
let marker = L.marker(coordinates, {icon: greenIcon})
|
||||
let marker = L.marker(coordinates, {icon: markerIcon})
|
||||
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 |
Loading…
Reference in New Issue