This commit is contained in:
Azgaar 2019-11-17 01:42:51 +03:00
parent c54ee39c68
commit efb8279abb
7 changed files with 83 additions and 103 deletions

View file

@ -1690,12 +1690,11 @@ const regenerateMap = debounce(function() {
resetZoom(1000);
generate();
restoreLayers();
const canvas3d = document.getElementById("canvas3d");
if (canvas3d) ThreeD.redraw();
if (ThreeD.options.isOn) ThreeD.redraw();
if ($("#worldConfigurator").is(":visible")) editWorld();
}, 500);
// Clear the map
// clear the map
function undraw() {
viewbox.selectAll("path, circle, polygon, line, text, use, #zones > g, #ruler > g").remove();
defs.selectAll("path, clipPath").remove();