removed redundant functions and changed addMarker functionality

This commit is contained in:
Elad Bernard Haviv 2023-08-04 10:31:50 +03:00
parent 535b4cebd9
commit 1b24991a42
3 changed files with 19 additions and 61 deletions

View file

@ -25,6 +25,13 @@ function overviewMarkers() {
position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}
});
Markers.getConfig().forEach(markerConfig => {
const option = document.createElement("option");
option.setAttribute("value", markerConfig.type);
option.textContent = `${markerConfig.icon} ${markerConfig.type}`;
document.getElementById("addedMarkerType").appendChild(option);
});
const listeners = [
listen(body, "click", handleLineClick),
listen(markersInverPin, "click", invertPin),