make jshin happy
This commit is contained in:
parent
4d7f96d534
commit
cce6dc8030
@ -88,11 +88,11 @@ var AbstractIconOverlay = L.LayerGroup.extend({
|
|||||||
objects.forEach(function(obj){
|
objects.forEach(function(obj){
|
||||||
var hash = self.hashPos(obj.x, obj.y, obj.z);
|
var hash = self.hashPos(obj.x, obj.y, obj.z);
|
||||||
var marker = self.currentObjects[hash];
|
var marker = self.currentObjects[hash];
|
||||||
var popup;
|
var popup, icon;
|
||||||
|
|
||||||
if (marker) {
|
if (marker) {
|
||||||
//marker exists
|
//marker exists
|
||||||
var icon = self.getIcon(obj);
|
icon = self.getIcon(obj);
|
||||||
|
|
||||||
if (!icon) {
|
if (!icon) {
|
||||||
//icon does not wanna be displayed anymore
|
//icon does not wanna be displayed anymore
|
||||||
@ -109,7 +109,7 @@ var AbstractIconOverlay = L.LayerGroup.extend({
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
//marker does not exist
|
//marker does not exist
|
||||||
var icon = self.getIcon(obj);
|
icon = self.getIcon(obj);
|
||||||
|
|
||||||
if (!icon) {
|
if (!icon) {
|
||||||
//icon does not want to be displayed
|
//icon does not want to be displayed
|
||||||
|
@ -70,7 +70,7 @@ var BorderOverlay = AbstractGeoJsonOverlay.extend({
|
|||||||
coords.push([
|
coords.push([
|
||||||
borders[bordername][0].x,
|
borders[bordername][0].x,
|
||||||
borders[bordername][0].z
|
borders[bordername][0].z
|
||||||
])
|
]);
|
||||||
|
|
||||||
var feature = {
|
var feature = {
|
||||||
"type":"Feature",
|
"type":"Feature",
|
||||||
|
@ -32,7 +32,7 @@ var TrainlineOverlay = AbstractGeoJsonOverlay.extend({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var lines = {}; // { "A1":[] }
|
var lines = {}; // { "A1":[] }
|
||||||
var lineColors = {} // { "A1": "red" }
|
var lineColors = {}; // { "A1": "red" }
|
||||||
|
|
||||||
//Sort and add lines
|
//Sort and add lines
|
||||||
objects.forEach(function(obj){
|
objects.forEach(function(obj){
|
||||||
|
Loading…
Reference in New Issue
Block a user