switch to GeoJSON response format instead of GPX:

- use BRouter track stats
- remove leaflet-gpx plugin
This commit is contained in:
Norbert Renner 2014-08-22 10:10:07 +02:00
parent d260414f6c
commit 726cf4bba6
16 changed files with 50 additions and 598 deletions

View file

@ -14,7 +14,7 @@ BR.Elevation = L.Control.Elevation.extend({
update: function(track) {
this.clear();
if (track && track.getLatLngs().length > 0) {
this.addData(track);
this.addData(track.toGeoJSON());
}
}
});