1

I am using OpenLayers getWMSFeatureInfo with multiple point layers.

When I click on a point on map, how to specify which layer that point belongs to?

3
  • Thanks for reply! I'm resolved problem! I'm using GML in openlayers to parse document return from query (event.text)!
    – Si Do Dinh
    Commented Mar 28, 2013 at 9:20
  • Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful.
    – user3461
    Commented Mar 28, 2013 at 11:33
  • 2
    Please post how you resolved the problem in answer. This way you can get reputation points.
    – neogeomat
    Commented Jan 16, 2014 at 13:05

2 Answers 2

1

I am not sure I understand what you mean, but you can find a docs of WMSGetFeatureInfo object of OL here. You might be interested mainly in drillDown and layers properties. That's how you can set what layers will be queried on click.

0

you can get your layer information from your feature. if you alert your f info when click as shown in following code, you can get what you want.

f.layer.name //or anything

i hope it helps you...

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.