[Commits] r1168 - apps/opengeo/geoexplorer/trunk/src/script/app
commits at geoext.org
commits at geoext.org
Tue Jun 30 00:52:41 CEST 2009
Author: tschaub
Date: 2009-06-30 00:52:41 +0200 (Tue, 30 Jun 2009)
New Revision: 1168
Modified:
apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
Log:
OpenLayers will append the default stylesheet if theme is not set to null and if a stylesheet with the same path as the default has not been included in the standard way. If we want to add a stylesheet (via link) that has a different path than the ol default, we have to explicitly set theme to null when creating a new map.
Modified: apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-06-29 22:20:14 UTC (rev 1167)
+++ apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-06-29 22:52:41 UTC (rev 1168)
@@ -266,6 +266,7 @@
// create the map
// TODO: check this.initialConfig.map for any map options
this.map = new OpenLayers.Map({
+ theme: null,
allOverlays: true,
controls: [new OpenLayers.Control.PanPanel(),
new OpenLayers.Control.ZoomPanel()]
More information about the Commits
mailing list