Hi Alexandre,<br>I remember seeing something like this <font size="2"> on one of sites in the OpenLayers gallery.(<a href="http://mapdata.thehumanjourney.net/" target="_blank">http://mapdata.thehumanjourney.net/</a>)<br>Maybe you could offset the popup slightly to either direction by using<br>

<br>var more=lonlat.add(0.003,0.003);<br>var less=lonlat.add(-0.003,-0.003);<br><br>less.lon, less.lat, more.lon, more.lat<br><br>I haven&#39;t tried this out myself. Hope this helps you.<br><br>Indika </font><br><br><div class="gmail_quote">
2008/10/31 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br>
<br>
 &nbsp;I have WFS layer of points with a select control to open popups when<br>
the mouse is over a feature ( hover:true ).<br>
<br>
 &nbsp;Problem is : the popup div covers half of the feature and if I get the<br>
mouse near that area, the popup keeps disappearing and reappearing (<br>
like a glitch). &nbsp;That&#39;s because of the position of the popup ( center of<br>
the feature) given by the feature.geometry.getBounds().getCenterLonLat()<br>
functions, which returns the only point available ( point layer ).<br>
<br>
 &nbsp; &nbsp;popup = new OpenLayers.Popup.FramedCloud(<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&quot;chicken&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;feature.geometry.getBounds().getCenterLonLat(),<br>
 &nbsp; &nbsp; &nbsp; &nbsp;null,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;szHTML,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;null, true, onPopupClose);<br>
<br>
 &nbsp; &nbsp;So, how could I &quot;offset&quot; the popup a little to make it outside the<br>
point radius ? &nbsp;I also use a custom pointRadius also btw...<br>
<br>
--<br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>