Running in Sart Tilman

From GHER

(Difference between revisions)
Jump to: navigation, search
Line 81: Line 81:
function getTrackColor(y) {
function getTrackColor(y) {
-
return y == '2013' ? '#7fc97f' :
+
return y == '2013' ? '#F6FD17' :
-
  y == '2014' ? '#beaed4' :
+
  y == '2014' ? '#FDB117' :
-
  y == '2015' ? '#fdc086' :
+
  y == '2015' ? '#E457DC' :
-
  y == '2016' ? '#ffff99' :
+
  y == '2016' ? '#8EEECC' :
-
  y == '2017' ? '#386cb0' :
+
  y == '2017' ? '#6C5FBA' :
'grey';
'grey';
}
}
Line 150: Line 150:
var heatmap = L.heatLayer(latlon, heatStyle);
var heatmap = L.heatLayer(latlon, heatStyle);
 +
                        heatmapLayer = L.layerGroup([heatmap])
 +
heatmapLayer.setZIndex(950);
//heatmap.addTo(map);
//heatmap.addTo(map);
Line 155: Line 157:
"Old tracks": L.layerGroup(OldTracks),
"Old tracks": L.layerGroup(OldTracks),
"Last run": L.layerGroup([moveGps]),
"Last run": L.layerGroup([moveGps]),
-
"Heat map": L.layerGroup([heatmap]),
+
"Heat map": heatmapLayer),
};
};

Revision as of 11:22, 9 March 2017

Running Sart-Tilman B5a and friends

Personal tools