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'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"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></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>
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>
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). That'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>
popup = new OpenLayers.Popup.FramedCloud(<br>
"chicken",<br>
feature.geometry.getBounds().getCenterLonLat(),<br>
null,<br>
szHTML,<br>
null, true, onPopupClose);<br>
<br>
So, how could I "offset" the popup a little to make it outside the<br>
point radius ? 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>