              }
                if (closestFeature.properties.activitytype===undefined) {
                    document.getElementById("act_icon").setAttribute("src", "../assets/" + icons['Unknown'][0]);
                    document.getElementById("act_icon").setAttribute("alt", icons['Unknown'][1]);
                } else {
                    document.getElementById("act_icon").setAttribute("src", "../assets/" + icons[closestFeature.properties.activitytype][0]);
                    document.getElementById(