Skip to content
Snippets Groups Projects
Commit aab127bf authored by Jakob Severin Steffensen Hjelseth's avatar Jakob Severin Steffensen Hjelseth
Browse files

Fix

parent c9a2c625
No related branches found
No related tags found
2 merge requests!85Resolve "Ferdigstille",!84Fix
......@@ -59,6 +59,11 @@ function changeMap() {
if (isHeat) {
heatmap();
}
if (newPoint) {
newPoint = false;
closeBox("makeNewPointBox");
document.getElementById("addPointButton").style.color = "orangered";
}
if (points != null) {
if (points != null) {
......
......@@ -22,8 +22,10 @@ function addPoint() {
document.getElementById("addPointButton").style.color = "green";
newPoint = true;
if (!map.hasLayer(points)) {
showPoints();
if (points != null) {
if (!map.hasLayer(points)) {
showPoints();
}
}
if (isTIN) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment