[Commits] r885 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Thu May 28 20:30:29 CEST 2009
Author: sbenthall
Date: 2009-05-28 20:30:29 +0200 (Thu, 28 May 2009)
New Revision: 885
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
add base layers button on layer chooser (functional)
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-28 18:30:01 UTC (rev 884)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-28 18:30:29 UTC (rev 885)
@@ -390,12 +390,10 @@
if(conf.title) {
layer.name = conf.title;
}
-
layer.setIsBaseLayer("isBaseLayer" in conf ?
conf.isBaseLayer: false);
-
// set any other layer configuration
records.push(record);
@@ -456,6 +454,14 @@
scope : this
}),
new Ext.Button({
+ text: "Add Base Layers",
+ iconCls: "icon-addlayers",
+ handler: function(){
+ capGridPanel.addLayers(true);
+ },
+ scope : this
+ }),
+ new Ext.Button({
text: "Done",
handler: function() {
this.capGrid.hide();
More information about the Commits
mailing list