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.

The OpenLayers.Control class possesses an eventListener property which could be used in the layer switcher control. I am not sure how to make use of it to detect a base layer change event so that I can store the variable name of the chosen layer to be used subsequently when the user navigate back to the map page. Can anyone give me some hints?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can check this link and view page source: http://openlayers.org/dev/examples/events.html

I think it has exactly what you want

share|improve this answer
    
How could I have missed that out? Oh my.. Thank you! –  Question Overflow Nov 2 '12 at 8:24
add comment

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.