<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff size=2>you can use a select control for the wfs layer.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN><SPAN class=531454916-27102008><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff size=2><A
href="http://openlayers.org/dev/examples/select-feature-openpopup.html">http://openlayers.org/dev/examples/select-feature-openpopup.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff 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 face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff size=2>Arnd Wippermann</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=531454916-27102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <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>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">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></BODY></HTML>