mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
removed redundant functions and changed addMarker functionality
This commit is contained in:
parent
535b4cebd9
commit
1b24991a42
3 changed files with 19 additions and 61 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue