[Commits] r886 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Thu May 28 21:40:38 CEST 2009
Author: dwins
Date: 2009-05-28 21:40:38 +0200 (Thu, 28 May 2009)
New Revision: 886
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Update extractConfiguration to include baseLayer attribute and not the layer titles (which are dynamically loaded anyway)
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-28 18:30:29 UTC (rev 885)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-28 19:40:38 UTC (rev 886)
@@ -946,7 +946,7 @@
* Returns an object that represents the app's current configuration.
*
* Returns:
- *{Object} An object that represents the app's current configuration.
+ * {Object} An object that represents the app's current configuration.
*/
extractConfiguration: function(){
var config = {};
@@ -966,11 +966,11 @@
this.layers.each(function(layerRecord){
var c = {
- title: layerRecord.get("title"),
name: (layerRecord.get("layer").params &&
layerRecord.get("layer").params.LAYERS) ||
layerRecord.get("name"),
- visibility: layerRecord.get("layer").getVisibility()
+ visibility: layerRecord.get("layer").getVisibility(),
+ isBaseLayer: layerRecord.get("layer").isBaseLayer
};
config.map.layers.push(c);
More information about the Commits
mailing list