This commit is contained in:
a-ill
2023-07-16 16:56:28 +03:00
parent 033f4f2a9b
commit 22cace06fd
22 changed files with 104 additions and 58 deletions

View File

@@ -56,8 +56,8 @@ export function addMarkersCoops(map,content) {
}
else if (field=="location") {
let location = g[field][0]
let town = location[1]=="" ? "" : ", " + content[location[1]]
text += fieldText + content[location[0]] + town + "<br>"
let locationString = location.map(x => content[x]).join(", ")
text += fieldText + locationString + "<br>"
coordinates = g[field][1]
}
else if (field=="market" || field=="status" || field=="description") {