Hello Geoserver-users,

Sorry for this trival question but I am quite new to this.
In GeoServer manual at
http://docs.geoserver.org/stable/en/user/services/wms/vendor.html#propertyname
says:

--------------------------------------------------------------------
"propertyName"

The propertyName parameter specifies which properties are included in the 
response of the GetFeatureInfo operation.
The syntax is the same as in the WFS GetFeature operation.

For a request for a single layer the syntax is:
propertyName=name1,...,nameN

For multiple layers the syntax is:
propertyName=(nameLayer11,...,nameLayer1N)...(name1LayerN,...,nameNLayerN)
--------------------------------------------------------------------

But I could get proper syntax for multiple layers :(
I tried to GetFeatureInfo for one layer and I succeded:

vendorParams: {propertyName:['STREET', 'MATERIAL', 'DIAMETER']},

Now I want to add another layer
 {watermeters:('CUSTOMER', 'NUMBER')
Tried everything but with no success.

--------------------------------------------------------------------
my OpenLayers code:

info = new OpenLayers.Control.WMSGetFeatureInfo(
 {
 url:
 "http://localhost:8080/geoserver/mygis/wms";,
 layers: [waterpipes],
 vendorParams: {propertyName:['STREET', 'MATERIAL', 'DIAMETER']},
 queryVisible: true,
 INFO_FORMAT: 'text/html',
 eventListeners:
         {getfeatureinfo: function(event)
         {document.getElementById('info').innerHTML = event.text;}
----------------------------------------------------------------------

Thanks.
-- 
Best regards,
 Nesh                          mailto:[email protected]


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to