Exclude loaded tracks from URL hash
This commit is contained in:
parent
9fd9a52a8c
commit
f197fb31be
1 changed files with 4 additions and 0 deletions
|
|
@ -144,6 +144,10 @@
|
|||
|
||||
formatLayers: function() {
|
||||
var objList = this.options.layersControl.getActiveLayers();
|
||||
// exclude vector layers (loaded tracks), but not when id set (route quality coding)
|
||||
objList = objList.filter(function(obj) {
|
||||
return obj.layer instanceof L.GridLayer || obj.layer.id;
|
||||
});
|
||||
var layerList = objList.map(
|
||||
L.bind(function(obj) {
|
||||
return encodeURIComponent(this.options.layersControl.toLayerString(obj));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue