[Commits] r926 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Sat May 30 00:07:38 CEST 2009
Author: sbenthall
Date: 2009-05-30 00:07:37 +0200 (Sat, 30 May 2009)
New Revision: 926
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
base layer visibility check box updates when layer is removed
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-29 22:06:02 UTC (rev 925)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-29 22:07:37 UTC (rev 926)
@@ -271,6 +271,8 @@
}
});
+ //this is a hack around OpenLayers #2111
+ var map = this.map
var removeLayerAction = new Ext.Action({
text: "Remove Layer",
iconCls: "icon-removelayers",
@@ -284,6 +286,10 @@
store.remove(store.getAt(store.findBy(function(record) {
return record.get("layer") === layer;
})));
+
+ //this is a hack around OpenLayers #2111
+ map.baseLayer.events.triggerEvent("visibilitychanged");
+
removeLayerAction.disable();
}
}
More information about the Commits
mailing list