[Commits] r2711 - sandbox/gxm/geoext/gxm/lib
commits at geoext.org
commits at geoext.org
Thu May 19 15:09:17 CEST 2011
Author: marcjansen
Date: 2011-05-19 15:09:16 +0200 (Thu, 19 May 2011)
New Revision: 2711
Modified:
sandbox/gxm/geoext/gxm/lib/MapPanel.js
Log:
- autocreated Map-instance IMO do not need all default controls.
Modified: sandbox/gxm/geoext/gxm/lib/MapPanel.js
===================================================================
--- sandbox/gxm/geoext/gxm/lib/MapPanel.js 2011-05-19 13:07:35 UTC (rev 2710)
+++ sandbox/gxm/geoext/gxm/lib/MapPanel.js 2011-05-19 13:09:16 UTC (rev 2711)
@@ -10,7 +10,13 @@
// check config-property map for an existing OpenLayers.Map-instance, a
// conf object for an OpenLayers.Map or null
if ( !(this.map instanceof OpenLayers.Map) ) {
- var mapConf = Ext.applyIf(this.map || {}, {allOverlays: true});
+ var mapConf = Ext.applyIf(this.map || {}, {
+ allOverlays: true,
+ controls: [
+ new OpenLayers.Control.TouchNavigation(),
+ new OpenLayers.Control.Attribution()
+ ]
+ });
this.map = new OpenLayers.Map(mapConf);
}
// this.map is now initialized in any case
More information about the Commits
mailing list