export let coops = [ { logo: "chiron_logo", name: "Chiron Health", location: ["Estonia, Kohtla-Järve",[59.40338782864918, 27.286240058760324]], market: "wellness and health", workers: 2, status: "launch in 2 months", website: "chrn.health", contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"], description: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.", }, { logo: "kuusk_logo", name: "Kuusk", location: ["Estonia, Kohtla-Järve",[59.405466538976185, 27.289104862336302]], market: "herbal teas", workers: 1, status: "launch in TBD months", website: "-", contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"], description: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.", } ] export function addMarkersCoops(map) { for (let g of coops) { let coordinates let text = "" for (let field in g) { let fieldText = "" + field[0].toUpperCase() + field.slice(1) + ": " + "" if (field=="logo") { text += "logo" + "
" } else if (field=="contact") { text += fieldText + "" + g.contact[1] + "" + "
" } else if (field=="website") { text += fieldText + "" + g.website + "" + "
" } else if (field=="location") { text += fieldText + g[field][0] + "
" coordinates = g[field][1] } else { text += fieldText + g[field] + "
" } } L.marker(coordinates).addTo(map).bindPopup(text) } }