<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font style="font-size:10pt;" color="#366092" face="Arial" size="2">Thanks <font style="font-size: 10pt;" size="2">f<font style="font-size: 10pt;" size="2">or the answer Phil and Dona<font style="font-size: 10pt;" size="2">ld. <font style="font-size: 10pt;" size="2">I was thinking about you<font style="font-size: 10pt;" size="2">r suggestions, but the point of this, actuall<font style="font-size: 10pt;" size="2">y </font>I forgot<font style="font-size: 10pt;" size="2"> to <font style="font-size: 10pt;" size="2">explain </font></font></font></font></font></font></font>it, is that <font style="font-size: 10pt;" size="2">this legend should appear once I choose <font style="font-size: 10pt;" size="2">the WMS in the layerswitcher, so I h<font style="font-size: 10pt;" size="2">ave for example a WMS<font style="font-size: 10pt;" size="2"> of bath<font style="font-size: 10pt;" size="2">y<font style="font-size: 10pt;" size="2">metry, so I choose that one and its legend a<font style="font-size: 10pt;" size="2">ppears, then <font style="font-size: 10pt;" size="2">I choose the <font style="font-size: 10pt;" size="2">a WMS of metamo<font style="font-size: 10pt;" size="2">rphic basement and its legend appears, and so<font style="font-size: 10pt;" size="2"> forth... I think Alexandre<font style="font-size: 10pt;" size="2">'s wor<font style="font-size: 10pt;" size="2">k was what I saw on<font style="font-size: 10pt;" size="2">ce, googling it I found this link [1]<font style="font-size: 10pt;" size="2"> but <font style="font-size: 10pt;" size="2">it's b<font style="font-size: 10pt;" size="2">r<font style="font-size: 10pt;" size="2">oken, is there <font style="font-size: 10pt;" size="2">a<font style="font-size: 10pt;" size="2"> new one<font style="font-size: 10pt;" size="2"> available out there</font>?<br></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>[1] <a href="http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/LayerTreeBuilder/examples/tree-builder.html">http://dev.geoext.org/sandbox/mapgears/geoext.ux/ux/LayerTreeBuilder/examples/tree-builder.html</a><br><br><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: donald.kerr@dkerr.co.uk<br>To: p.scadden@gns.cri.nz; openlayers-users@lists.osgeo.org<br>Date: Tue, 27 Nov 2012 21:36:34 +0000<br>Subject: Re: [OpenLayers-Users] legend "floating" over map<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";color:black;}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";color:black;}
.ExternalClass span.ecxEmailStyle18
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Can you not just use an absolute/relative positioned div and put the image in that?</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US"> openlayers-users-bounces@lists.osgeo.org [mailto:openlayers-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Phil Scadden<br><b>Sent:</b> 27 November 2012 21:04<br><b>To:</b> openlayers-users@lists.osgeo.org<br><b>Subject:</b> Re: [OpenLayers-Users] legend "floating" over map</span></p></div></div><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"><br><br></p><div><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#366092">I've been scratching my head over this, no clear idea so far. I have a WMS layer served with mapserver and want to display with it a legend image (PNG) "floating" over the WMS. It means, when I move the WMS in OpenLayers, the legend is always in the same place, ie, top-left corner of my screen. I generated this legend, a sample is attached. I remember an example about this in the Geoext examples web site but it's not longer there (if it existed). Any idea about doing this is appreciated, thanks.</span></p></div><p class="ecxMsoNormal">Create a popup - position on map where you want it. Put the legend image into a popup (img tag in the html). If you have geoext loaded as well, the strongly consider Alexandre Dube LayerTreebuilder ux as an alternative (used on my PBE website) to build the legend.</p><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.</span><BR><span style="font-size:8.0pt;font-family:"Arial","sans-serif""> </span><BR></div><br>_______________________________________________
Users mailing list
Users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users</div>                                      </div></body>
</html>