<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML amb format previ Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLambformatpreviCar
        {mso-style-name:"HTML amb format previ Car";
        mso-style-priority:99;
        mso-style-link:"HTML amb format previ";
        font-family:Consolas;}
span.EstilCorreuElectrnic19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstilCorreuElectrnic20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EstilCorreuElectrnic21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>This mesage is for this list.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Vidal, Antoni <br><b>Enviat:</b> lunes, 16 de mayo de 2011 9:01<br><b>Per a:</b> 'Meine Toonen'; openlayers-users@lists.osgeo.org<br><b>Tema:</b> RE: [OpenLayers-Users] Expanded OverviewMap by default<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I didn’t mentioned that I’m working with GeoExt. Your solution didn’t works.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>My code:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> // overviewmap<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> var overviewMapSize = new OpenLayers.Size(128, 123);<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> var bounds = new OpenLayers.Bounds(258000,4485000,536000,4752000);<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> var genericMapOptions = {projection: "EPSG:23031", units: 'm', maxExtent: bounds}<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> var reference = new OpenLayers.Layer.Image(<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> "Overview", "./app/img/mapa_ref.jpg", bounds, overviewMapSize<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> );<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> var overviewOptions = {<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> maximized: true,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> mapOptions: genericMapOptions,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> size: overviewMapSize,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> layers: [reference]<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> var ovControl = new OpenLayers.Control.OverviewMap(overviewOptions);<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Toni.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Meine Toonen [mailto:meinetoonen@b3partners.nl] <br><b>Enviat:</b> viernes, 13 de mayo de 2011 13:57<br><b>Per a:</b> Vidal, Antoni; openlayers-users@lists.osgeo.org<br><b>Tema:</b> Re: [OpenLayers-Users] Expanded OverviewMap by default<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Hi Antoni,<br><br>Yes this is possible through the maximized option, which you can pass to the overviewmap:<br><br><o:p></o:p></span></p><pre>var controlOptions = {<o:p></o:p></pre><pre> maximized: true,<o:p></o:p></pre><pre> layers: [...]<o:p></o:p></pre><pre> }<o:p></o:p></pre><pre>var overview2 = new OpenLayers.Control.OverviewMap(controlOptions);<o:p></o:p></pre><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Also take a look at the documentation:<br>http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html<br><br>Met vriendelijke groet,<br><br>Meine Toonen<br>B3Partners BV<br>Tel: 030 214 2081<o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Vidal, Antoni [mailto:antoni.vidal@icc.cat]<br><b>To:</b> openlayers-users@lists.osgeo.org<br><b>Sent:</b> Fri, 13 May 2011 11:47:20 +0200<br><b>Subject:</b> [OpenLayers-Users] Expanded OverviewMap by default<o:p></o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hello list,<span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Is possible to get OverViewMap control expanded by default when aplication initialices?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thank’s in advance.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#0D0D0D'>Antoni Vidal</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Unitat d'Aplicacions SIG-WEB<br><a href="http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392"><span style='color:gray'>Institut Cartogràfic de Catalunya</span></a><br>Parc de Montjuïc, E-08038 Barcelona<br>Tel. (+34) 93 567 15 00 (ext. 3228)<br><a href="http://www.icc.cat/">www.icc.cat</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></body></html>