1

Having a problem trying to get WMSGetFeatureInfo to work in openlayers - running off of Geoserver (http://gisnexus.com/cmha/cmha_site_test.html) you click on any feature, it shows as if the layer is being read from opengeospatial.net - but nowhere in the code does it call out to it!

2

1 Answer 1

1

WMSGetFeatureInfo is to retrieve information from a WMS server. (http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Control/WMSGetFeatureInfo-js.html)

I you want WFS information you need to use GetFrature control: http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Control/GetFeature-js.html

Check you are using the right control.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.