add track casing + change color to magenta
This commit is contained in:
parent
e822c9a21c
commit
7c2df94fe8
5 changed files with 37 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue