<html><body bgcolor="#FFFFFF"><div>Thank brad, it work!!</div><div><br></div><div>Rg Valeria&nbsp;<br><br>Enviado desde mi iPhone</div><div><br>El 11-05-2011, a las 18:01, "brad" &lt;<a href="mailto:brad@numaps.com.au">brad@numaps.com.au</a>&gt; escribió:<br><br></div><div></div><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Valeria,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I may have this wrong so people can correct me. <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">But this seems to be an issue with OL as I notice that if you have a lot of layers and vectors and event controls you can get in a little bit of a pickle with respect to different zIndexes. <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I got around this by making all my added layers relative to the popups which I set initially at 10000 with the following &gt;&gt; map.Z_INDEX_BASE['Popup'] = 10000;<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Then whenever I add a layer I make its zIndex below that with the following &nbsp;&gt;&gt; PolygonLayer.setZIndex(map.Z_INDEX_BASE['Popup'] - 1000); So this vector layer is set at 9000. Etc. <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I have noticed that sometimes zIndexes change so periodically in my app I reset all the zIndexes so that they are where I want them to be with a function call resetZlevels(). <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">If I also want a layer to be on the top I can temporarily change its zIndex&nbsp; so its on top of others but always below popup. With the following &gt;&gt; layerObject.setZIndex(map.Z_INDEX_BASE['Popup']-10);<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">This way I have managed to work around some of the problems you refer to but its probably a ‘sledgehammer’ approach.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hope this helps.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Cheers, Brad....<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a> [mailto:openlayers-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Valeria Muñoz<br><b>Sent:</b> Thursday, 12 May 2011 5:44 AM<br><b>To:</b> <a href="mailto:users@openlayers.org"><a href="mailto:users@openlayers.org">users@openlayers.org</a></a><br><b>Subject:</b> [OpenLayers-Users] popup and setzindex<o:p></o:p></span></p></div><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">hi!!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i have a problem with my popup, the <span class="highlight">popup</span> appears under the <span class="highlight">layers. can i define something like setZindex for <b>OpenLayers.Popup?</b></span><b><br><br></b><span class="highlight">RG</span><br><span class="highlight">Valeria</span><o:p></o:p></p></div></div></blockquote></body></html>