Increase file size limit for tracks, configurable
(abrensch/brouter#295)
This commit is contained in:
parent
5f0f155e5f
commit
dd34064e8c
2 changed files with 4 additions and 1 deletions
|
|
@ -129,4 +129,7 @@
|
|||
BR.conf.tracknameAllowedChars = 'a-zA-Z0-9 \\._\\-';
|
||||
|
||||
BR.conf.overpassBaseUrl = 'https://overpass.kumi.systems/api/interpreter';
|
||||
|
||||
// File size limit in kb for loading tracks
|
||||
BR.conf.trackSizeLimit = 1024 * 10;
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ BR.tracksLoader = function (map, layersControl, routing, pois) {
|
|||
layerOptions: BR.Track.getGeoJsonOptions(layersControl),
|
||||
addToMap: false,
|
||||
// File size limit in kb (default: 1024) ?
|
||||
fileSizeLimit: 1024,
|
||||
fileSizeLimit: BR.conf.trackSizeLimit || 1024 * 10,
|
||||
shortcut: {
|
||||
open: 79, // char code for 'o'
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue