diff --git a/server/static/js/overlays/AbstractIconOverlay.js b/server/static/js/overlays/AbstractIconOverlay.js index 126e0f3..69ec6e5 100644 --- a/server/static/js/overlays/AbstractIconOverlay.js +++ b/server/static/js/overlays/AbstractIconOverlay.js @@ -88,11 +88,11 @@ var AbstractIconOverlay = L.LayerGroup.extend({ objects.forEach(function(obj){ var hash = self.hashPos(obj.x, obj.y, obj.z); var marker = self.currentObjects[hash]; - var popup; + var popup, icon; if (marker) { //marker exists - var icon = self.getIcon(obj); + icon = self.getIcon(obj); if (!icon) { //icon does not wanna be displayed anymore @@ -109,7 +109,7 @@ var AbstractIconOverlay = L.LayerGroup.extend({ } else { //marker does not exist - var icon = self.getIcon(obj); + icon = self.getIcon(obj); if (!icon) { //icon does not want to be displayed diff --git a/server/static/js/overlays/BorderOverlay.js b/server/static/js/overlays/BorderOverlay.js index 89f0e7f..d59344d 100644 --- a/server/static/js/overlays/BorderOverlay.js +++ b/server/static/js/overlays/BorderOverlay.js @@ -70,7 +70,7 @@ var BorderOverlay = AbstractGeoJsonOverlay.extend({ coords.push([ borders[bordername][0].x, borders[bordername][0].z - ]) + ]); var feature = { "type":"Feature", diff --git a/server/static/js/overlays/TrainlineOverlay.js b/server/static/js/overlays/TrainlineOverlay.js index 361daf9..3d5f9f5 100644 --- a/server/static/js/overlays/TrainlineOverlay.js +++ b/server/static/js/overlays/TrainlineOverlay.js @@ -32,7 +32,7 @@ var TrainlineOverlay = AbstractGeoJsonOverlay.extend({ }); var lines = {}; // { "A1":[] } - var lineColors = {} // { "A1": "red" } + var lineColors = {}; // { "A1": "red" } //Sort and add lines objects.forEach(function(obj){