make jshin happy

This commit is contained in:
Thomas Rudin 2019-06-09 18:32:36 +02:00
parent 4d7f96d534
commit cce6dc8030
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -70,7 +70,7 @@ var BorderOverlay = AbstractGeoJsonOverlay.extend({
coords.push([
borders[bordername][0].x,
borders[bordername][0].z
])
]);
var feature = {
"type":"Feature",

View File

@ -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){