Hi all,<br>
my problem is:<br>
I have a map with two wms layers served by GeoServer, and would like<br>
to display in a pop-up some attributes of the second layer.<br>
I would also like to customize the pop-ups.<br>
I tried several ways but the one I work is:<br>#info = new OpenLayers.Control.<div id=":30" class="ii gt">#WMSGetFeatureInfo ((<br># url: '<a href="http://10.0.0.161:8080/geoserver/wms" target="_blank">http://10.0.0.161:8080/geoserver/wms</a>',<br>
# title: 'Identify features by clicking',<br># queryVisible: true,<br>
# eventListeners: (<br>
# getfeatureinfo: function (event) (<br>
# map.addPopup (new OpenLayers.Popup.FramedCloud (<br>
# "Chicken"<br>
# map.getLonLatFromPixel (event.xy)<br>
# null<br>
# event.text,<br>
# null<br>
# true<br>
# ));<br>
# )<br>
# )<br>
# ));<br>
# map.addControl (info);<br>
# info.activate ();<br>
<br>
With this code, however, I see the pop-up with "all" attributes in a table.<br>
There is an alternative way, which doesn't uses GML, KML and other<br>
formats, but uses only wms or wfs?<br>
<br>
Another problem:<br>
I tried with wfs but even I can not see nothing on the map!<br>
I've tried with this code:<br>
<br>
#var wfslayer = new OpenLayers.Layer.Vector("WFS", {<br>
# strategies: [new OpenLayers.Strategy.BBOX()],<br>
# protocol: new OpenLayers.Protocol.WFS({<br>
# url: "<a href="http://10.0.0.161:8080/geoserver/wfs" target="_blank">http://10.0.0.161:8080/geoserver/wfs</a>",<br>
# featureType: "aeroporti",<br>
# featureNS: "<a href="http://geoserver.org/" target="_blank">http://geoserver.org</a>",<br>
# srsName: "EPSG:4326",<br>
# version: "1.0.0"<br>
# })<br>
#});<br>
<br>
<br>
thanks to all</div><br><br>-- <br>-beppe-<br><br>