This commit is contained in:
a-ill
2023-07-14 22:27:11 +03:00
parent 54042ca875
commit 52ab70d0de
46 changed files with 244 additions and 93 deletions

View File

@@ -20,10 +20,12 @@ for (let g of parties) {
}
}
export let partiesMarkersLayer = L.layerGroup()
export function addMarkersParties(map,content) {
for (let g of parties) {
let coordinates
let text = ""
let text = "<b>Party</b><br>"
for (let field in g) {
let fieldText
if (field!="logo") {
@@ -58,6 +60,7 @@ export function addMarkersParties(map,content) {
shadowSize: [41, 41]
});
let marker = L.marker(coordinates, {icon: markerIcon})
marker.addTo(map).bindPopup(text)
marker.addTo(partiesMarkersLayer).bindPopup(text)
}
partiesMarkersLayer.addTo(map)
}