Hi Guillaume,<br><br>You can set  your popup position anywhere nearby a feature by applying an offset. For instance,<br> <br>var popup = new OpenLayers.Popup.FramedCloud(&quot;mypopup&quot;, <br>    &nbsp;&nbsp;new OpenLayers.LonLat(feature.geometry.x,feature.geometry.y),<br>
    &nbsp;&nbsp;null,<br>    &nbsp;&nbsp;html,<br>    &nbsp;&nbsp;{&#39;size&#39;: new OpenLayers.Size(5,5), &#39;offset&#39;: new OpenLayers.Pixel(10,10)},<br>    &nbsp;&nbsp;true,<br>    &nbsp;&nbsp;function(){this.hide()}<br>);<br><br>For your second question,&nbsp;you may want to open the popup in one fixed direction ... (using FramedCloud Popups&#39; fixedRelativePosition option). <br>
HTH.<br><br>BTW, what&#39;s the link with XML ?<br><br>Cheers,<br>F.<br><br><div><span class="gmail_quote">2008/8/13, Guillaume Sueur &lt;<a href="mailto:guillaume.sueur@neogeo-online.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">guillaume.sueur@neogeo-online.net</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
 Hi list,<br><br> Is there a way to offset properly the popup anchor on a vector layer ?<br> Tried to do it be displacing the lonlat for popup but as I can&#39;t know in<br> which direction to displace it, it&#39;s not clean.<br>
<br> Thanks<br><br>--<br> Guillaume<br> _______________________________________________<br> Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>