Programmatically visible layers not sync with Toc Widget

1558
1
07-15-2016 11:06 AM
NicoAtos
New Contributor

I have installed Viewer Flex 3.3 with source code.

I have some map services with several group layers.  I am trying to control the visibility of these layers programmatically by adding or removing them from the visibleLayers arrayCollection when I start the application because I store this information in db using a web service.

In TOC widget correctly shows the visibility, only for map services but incorrectly shows visibility for layer of services, which means they are not in sync. 

I am looking for a way to refresh the map / layers (service) or an event to dispatch so that the map will match the TOC widget and correctly display visible layers but I don't understand where made the sync

Can help me or this is a bug fixed in Viewer Flex superior at 3.3

Thank you

0 Kudos
1 Reply
MattiasEkström
Occasional Contributor III

I think this was fixed in a later version. Why not use the latest version 3.7?

If you should use flex at all. I will keep my existing flex applications, but won't use flex in new projects since it's a dead end.

0 Kudos