handle old 'format=gpx' permalinks: format is not an option
This commit is contained in:
parent
726cf4bba6
commit
928229530f
1 changed files with 3 additions and 5 deletions
|
|
@ -10,9 +10,10 @@ L.BRouter = L.Class.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
format: 'geojson'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
format: 'geojson',
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
L.setOptions(this, options);
|
L.setOptions(this, options);
|
||||||
|
|
||||||
|
|
@ -41,7 +42,7 @@ L.BRouter = L.Class.extend({
|
||||||
nogos: this._getNogosString(this.options.nogos),
|
nogos: this._getNogosString(this.options.nogos),
|
||||||
profile: this.options.profile,
|
profile: this.options.profile,
|
||||||
alternativeidx: this.options.alternative,
|
alternativeidx: this.options.alternative,
|
||||||
format: format || this.options.format
|
format: format || this.format
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -59,9 +60,6 @@ L.BRouter = L.Class.extend({
|
||||||
if (params.profile) {
|
if (params.profile) {
|
||||||
opts.profile = params.profile;
|
opts.profile = params.profile;
|
||||||
}
|
}
|
||||||
if (params.format) {
|
|
||||||
opts.format = params.format;
|
|
||||||
}
|
|
||||||
return opts;
|
return opts;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue