Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using getWMSFeatureInfo with multiple point layers.

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

share|improve this question
Thanks for reply! I'm resolved problem! I'm using GML in openlayers to parse document return from query (event.text)! – Si Do Dinh Mar 28 '13 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 Mar 28 '13 at 11:33
Please post how you resolved the problem in answer. This way you can get reputation points. – neogeomat Jan 16 '14 at 13:05

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.

share|improve this answer

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. //or anything

i hope it helps you...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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