Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
2  
Please post how you resolved the problem in answer. This way you can get reputation points. –  neogeomat Jan 16 at 13:05

2 Answers 2

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...

share|improve this answer

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

Your Answer

 
discard

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.