Exclude loaded tracks from URL hash

This commit is contained in:
Norbert Renner 2020-06-03 20:24:17 +02:00
parent 9fd9a52a8c
commit f197fb31be

View file

@ -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));