Ok since my previous problem of overlaying WFS onto WMS is still unsuccessful, I though was able to overlay the WMS instead with this code,

{layers: 'iPlant:AllQuebecSpecies', transparent: true}

So now I wanted to know can I use the openlayers get-feature example to obtain info from the WMS or does it work only for WFS?

1 Answer 1


The GetFeature control does not work for WMS GetFeatureInfo. The WMSGetFeatureInfo control does. See http://www.openlayers.org/dev/examples/getfeatureinfo-control.html for an example.

  • That is the link that I have added in my question
    – Sam007
    May 17, 2012 at 16:32

Your Answer

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

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