diff --git a/src/module_vmap/module/javascript/app/vmap/mapmanager/layerstree.js b/src/module_vmap/module/javascript/app/vmap/mapmanager/layerstree.js index 022e48e4907211780ce980c29716871e9710190a..449d5d8ee093c7b562bcc0ffb60f16f0bcf8a237 100644 --- a/src/module_vmap/module/javascript/app/vmap/mapmanager/layerstree.js +++ b/src/module_vmap/module/javascript/app/vmap/mapmanager/layerstree.js @@ -377,8 +377,9 @@ nsVmap.nsMapManager.LayersTree.prototype.LayertreeController.prototype.reloadTre // Arbre pour la comparaison if(this.scope_["$root"]["compare_enabled"]){ var oCompareTree = jQuery.extend(true, {}, oVmap.getMapManager().getCompareLayersTree()); - this.scope_['compareTree'] = oCompareTree; + } else { + this.scope_['compareTree'] = {}; } oVmap.resizeLayerTools(false); diff --git a/src/module_vmap/module/javascript/app/vmap/mapmanager/maplegend.js b/src/module_vmap/module/javascript/app/vmap/mapmanager/maplegend.js index 91ff9d3080290a949736e83d9ec2dee001c7e5e4..c6759068d12cdca81139276cf329080ba8fe1adf 100644 --- a/src/module_vmap/module/javascript/app/vmap/mapmanager/maplegend.js +++ b/src/module_vmap/module/javascript/app/vmap/mapmanager/maplegend.js @@ -193,6 +193,8 @@ nsVmap.nsMapManager.MapLegend.prototype.maplegendController.prototype.loadLegend if(this.$scope_["$root"]["compare_enabled"]){ this['oCompareUrls'] = this.getLegendUrls(oVmap.getMapCompare().getOLMap()); this.downloadLegendImgs(this['oCompareUrls']); + } else { + this['oCompareUrls'] = {}; } };