[OpenLayers-Users] Expanded OverviewMap by default

Vidal, Antoni antoni.vidal at icc.cat
Mon May 16 03:00:50 EDT 2011


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:meinetoonen at b3partners.nl] 
Enviat: viernes, 13 de mayo de 2011 13:57
Per a: Vidal, Antoni; openlayers-users at lists.osgeo.org
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:antoni.vidal at icc.cat]
To: openlayers-users at lists.osgeo.org
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/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110516/f717a1fb/attachment.html


More information about the Users mailing list