Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Layerlist not updating

$
0
0
Hi,

I have an issue with a session restore widget. The widget is based on a post that Robert did quite a few versions ago. The widget is designed to restore the layers that users had on. At version 3 the widget isn't working; the correct layers are becoming visible on the map, however the layerlist is not updating the sublayer checkboxes for dynamic services. Can anyone give me an idea of how to make the widget update the layerlist checkboxes to reflect the layers on the map?

This is the restore portion of the dynamic services

if (layer is ArcGISDynamicMapServiceLayer) {
layer.visible = acVisLayers[cLayId].visible;
ArcGISDynamicMapServiceLayer(layer).visibleLayers = acVisLayers[cLayId].visarray;

Thanks,
Todd

Viewing all articles
Browse latest Browse all 2097

Trending Articles