brouter-web/js/plugin/Elevation.js
Norbert Renner 726cf4bba6 switch to GeoJSON response format instead of GPX:
- use BRouter track stats
- remove leaflet-gpx plugin
2014-08-22 10:10:07 +02:00

20 lines
No EOL
448 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.toGeoJSON());
}
}
});