Thanks for the reply.<br><br>It seems that when I click within the marker, I get different lon, lat values.<br><br>Is it necessary to bind the markers to something ?<br><br>Also with the extractAttributes:true, how can I access the attributes of the feature ?<br>
<br>Regards,<br>Indika<br><br><div class="gmail_quote">2008/10/27 Arnd Wippermann <span dir="ltr"><<a href="mailto:arnd.wippermann@web.de">arnd.wippermann@web.de</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;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">you can use a select control for the wfs layer.
</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"><a href="http://openlayers.org/dev/examples/select-feature-openpopup.html" target="_blank">http://openlayers.org/dev/examples/select-feature-openpopup.html</a></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">If you have load the wfs layer with extractAttributes:
true, then your wfs data are saved in the attributes of the
features.</font></span></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Arnd Wippermann</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left" lang="de">
<hr>
<font face="Tahoma" size="2"><b>Von:</b> <a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a>
[mailto:<a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a>] <b>Im Auftrag von </b>Indika
Tantrigoda<br><b>Gesendet:</b> Montag, 27. Oktober 2008 16:17<br><b>An:</b>
OpenLayers users mailing list<br><b>Betreff:</b> [OpenLayers-Users] WFS Layers,
Markers, Popups<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>Hi,<br>I have a wfs layer that displays points on my map, using
markers.<br>I would like to have a popup that displays data regarding the point
which would get activated for a click event.<br><br>I tried the following but,
it seems to return all the data regarding the wfs layer, not the single point,
irrespective of<br>where I click on the
map.<br><br> wfs_cities.events.register('click', map, function (e)
{<br>
document.getElementById('nodelist').innerHTML = "Loading... please
wait...";<br>
var url =
map.layers[2].getFullRequestString(<br>
{<br>
REQUEST:
"GetFeature",<br>
EXCEPTIONS:
"application/vnd.ogc.se_xml",<br>
BBOX:
map.getExtent().toBBOX(),<br>
X:
e.xy.x,<br>
Y:
e.xy.y,<br>
INFO_FORMAT:
'text/html',<br>
QUERY_LAYERS:
map.layers[2].params.LAYERS,<br>
FEATURE_COUNT:
50,<br>
WIDTH:
map.size.w,<br>
HEIGHT:
map.size.h<br>
},<br>
"<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>"<br>
);<br><br>Any ideas how I can get around this ?<br><br>Thanks in
advance.<br><br>Regards,<br>Indika<br></div></div></div>
</blockquote></div><br>