add track casing + change color to magenta

This commit is contained in:
Norbert Renner 2015-04-25 16:19:30 +02:00
parent e822c9a21c
commit 7c2df94fe8
5 changed files with 37 additions and 4 deletions

View file

@ -13,6 +13,13 @@ BR.Elevation = L.Control.Elevation.extend({
update: function(track, layer) {
this.clear();
// bring height indicator to front, because of track casing in BR.Routing
if (this._mouseHeightFocus) {
var g = this._mouseHeightFocus[0][0].parentNode;
g.parentNode.appendChild(g);
}
if (track && track.getLatLngs().length > 0) {
this.addData(track.toGeoJSON(), layer);
}