Merge pull request #221 from Phyks/exportWaypoints

Export waypoints from BRouter-web interface
This commit is contained in:
Norbert Renner 2019-07-26 18:10:32 +02:00 committed by GitHub
commit 4b470ab0b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 2 deletions

View file

@ -45,8 +45,14 @@ BR.Export = L.Class.extend({
exportForm['format'].value ||
$('#export-format input:radio:checked').val();
var name = encodeURIComponent(exportForm['trackname'].value);
var includeWaypoints = exportForm['include-waypoints'].checked;
var uri = this.router.getUrl(this.latLngs, format, name);
var uri = this.router.getUrl(
this.latLngs,
format,
name,
includeWaypoints
);
var evt = document.createEvent('MouseEvents');
evt.initMouseEvent(