move markers into a separate module

This commit is contained in:
Azgaar 2021-09-11 21:18:08 +03:00
parent 2c4c462499
commit acd9cfdd69
6 changed files with 234 additions and 206 deletions

View file

@ -460,7 +460,7 @@ function parseLoadedData(data) {
zones.attr("opacity", 0.6).attr("stroke", null).attr("stroke-width", 0).attr("stroke-dasharray", null).attr("stroke-linecap", "butt");
addZones();
if (!markers.selectAll("*").size()) {
addMarkers();
Markers.generate();
turnButtonOn("toggleMarkers");
}