[OpenLayers-Users] Addming map object in GeoExt window panel

sqgs mxxerr at yahoo.com
Thu Mar 1 18:19:53 EST 2012



I am learning GeoExt and trying to add a map object in this GeoExt Window
example:
http://api.geoext.org/1.1/examples/mappanel-window.html

for example to declare:

    var map = new OpenLayers.Map( 'map',{ maxExtent: new
OpenLayers.Bounds(-180, -90, 180, 90),
                    projection: new OpenLayers.Projection("EPSG:4326"),
                    units: "degrees",
                    controls: [
                    new OpenLayers.Control.PanZoom(),
                    new OpenLayers.Control.Navigation()
            ]} );

so that I can add more controls to the map object. 

But seems Ext.Window() can only add layers. 

How to add map object for this GeoExt floating window example?

Thanks.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Addming-map-object-in-GeoExt-window-panel-tp4537963p4537963.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list