Select to view content in your preferred language

update LayerManager after one layer checkbox was checked

1069
0
11-22-2010 11:50 AM
CindyLu
Deactivated User
Hello,

Can I do something with LayerManager? If user turn on one layer, I want the application turn off another layer in the LayerManager.

What event should the application listen to when user turn on a layer? I tried add code in MapManager.mxml, but that does not work for me.    SiteContainer.addEventListener(AppEvent.LAYER_VISIBILITY_CHANGED, myFunction);

I think I can also do something at TocItemRender.as at onCheckBoxClick. But I don't know how can I get a list of hte TocItem array. Can anyone help me?

Thank you very much!

Cindy
Tags (2)
0 Kudos
0 Replies