brouter-web/js/plugin/Elevation.js
2014-05-14 15:07:50 +02:00

20 lines
No EOL
436 B
JavaScript

BR.Elevation = L.Control.Elevation.extend({
options: {
position: "leftpane",
width: 385,
margins: {
top: 20,
right: 30,
bottom: 30,
left: 60
},
theme: "steelblue-theme" //purple
},
update: function(track) {
this.clear();
if (track && track.getLatLngs().length > 0) {
this.addData(track);
}
}
});