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>