[Commits] r1386 - apps/opengeo/geoexplorer/trunk/src/script/app
commits at geoext.org
commits at geoext.org
Thu Oct 8 00:54:11 CEST 2009
Author: tschaub
Date: 2009-10-08 00:54:11 +0200 (Thu, 08 Oct 2009)
New Revision: 1386
Modified:
apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
Log:
Respect some map options.
Modified: apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-10-07 22:48:00 UTC (rev 1385)
+++ apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-10-07 22:54:11 UTC (rev 1386)
@@ -256,13 +256,13 @@
createLayout: function() {
// create the map
- // TODO: check this.initialConfig.map for any map options
+ var mapConfig = this.initialConfig.map || {};
this.map = new OpenLayers.Map({
- theme: null,
- allOverlays: true,
+ theme: mapConfig.theme || null,
+ allOverlays: ("allOverlays" in mapConfig) ? mapConfig.allOverlays : true,
controls: [new OpenLayers.Control.PanPanel(),
new OpenLayers.Control.ZoomPanel()],
- numZoomLevels: this.numZoomLevels || 20
+ numZoomLevels: mapConfig.numZoomLevels || 20
});
//** Remove this code when OpenLayers #2069 is closed **
@@ -294,7 +294,6 @@
// place map in panel
- var mapConfig = this.initialConfig.map || {};
this.mapPanel = new GeoExt.MapPanel({
layout: "anchor",
border: true,
More information about the Commits
mailing list