Hi,

 

I didn’t mentioned that I’m working with GeoExt.  Your solution didn’t works.

 

My code:

 

                               // overviewmap

                               var overviewMapSize = new OpenLayers.Size(128, 
123);

                               var bounds = new 
OpenLayers.Bounds(258000,4485000,536000,4752000);

                               var genericMapOptions = {projection: 
"EPSG:23031", units: 'm', maxExtent: bounds}

                               var reference = new OpenLayers.Layer.Image(

                                               "Overview", 
"./app/img/mapa_ref.jpg", bounds, overviewMapSize

                               );

                                               

                               var overviewOptions = {

                                               maximized: true,

                                               mapOptions: genericMapOptions,

                                               size: overviewMapSize,

                                               layers: [reference]

                               }

                               var ovControl = new 
OpenLayers.Control.OverviewMap(overviewOptions);

 

Thanks

 

Toni.

 

De: Meine Toonen [mailto:[email protected]] 
Enviat: viernes, 13 de mayo de 2011 13:57
Per a: Vidal, Antoni; [email protected]
Tema: Re: [OpenLayers-Users] Expanded OverviewMap by default

 

Hi Antoni,

Yes this is possible through the maximized option, which you can pass to the 
overviewmap:




var controlOptions = {
            maximized: true,
            layers: [...]
        }
var overview2 = new OpenLayers.Control.OverviewMap(controlOptions);

Also take a look at the documentation:
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html

Met vriendelijke groet,

Meine Toonen
B3Partners BV
Tel: 030 214 2081

________________________________

From: Vidal, Antoni [mailto:[email protected]]
To: [email protected]
Sent: Fri, 13 May 2011 11:47:20 +0200
Subject: [OpenLayers-Users] Expanded OverviewMap by default

Hello list,

 

Is possible to get OverViewMap control expanded by default when aplication 
initialices?

 

Thank’s in advance.

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya 
<http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 

 

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to