diff --git a/src/script/plugins/Legend.js b/src/script/plugins/Legend.js index e4a3e403..17aa7c61 100644 --- a/src/script/plugins/Legend.js +++ b/src/script/plugins/Legend.js @@ -74,7 +74,7 @@ gxp.plugins.Legend = Ext.extend(gxp.plugins.Tool, { tooltip: this.tooltip, handler: function() { this.removeOutput(); - this.addOutput(); + this.addOutput(this.outputConfig); }, scope: this }]; diff --git a/src/script/plugins/WMSSource.js b/src/script/plugins/WMSSource.js index 13466bbe..92df32f1 100644 --- a/src/script/plugins/WMSSource.js +++ b/src/script/plugins/WMSSource.js @@ -217,7 +217,11 @@ gxp.plugins.WMSSource = Ext.extend(gxp.plugins.LayerSource, { */ onAuthorizationChange: function() { if (this.store && this.url.charAt(0) === "/") { - this.store.reload(); + var lastOptions = this.store.lastOptions || {params: {}}; + Ext.apply(lastOptions.params, { + '_dc': Math.random() + }); + this.store.reload(lastOptions); } },