Packagecom.esri.aws.awx.map.layers
Interfacepublic interface ILayerVisibility
ImplementorsMapImageGroupLayer, VectorGroupLayer

The ILayerVisibility interface designates that a particular layer can have individual LayerVisibility objects toggled on and off. This offers different functionality than an IGroupLayer because sub layers can not be added removed or swapped, only their visibility can be toggled.

See also

LayerVisibility


Public Properties
 PropertyDefined by
  layerVisibilities : Array
[write-only] Write only property for setting the LayerVisibility if you know the layer names.
ILayerVisibility
Public Methods
 MethodDefined by
  
getLayerVisibilities(responder:IResponder):void
Getting layer visibilities can be an asynchronous process, so it requires a responder.
ILayerVisibility
Property detail
layerVisibilitiesproperty
layerVisibilities:Array  [write-only]

Write only property for setting the LayerVisibility if you know the layer names.

Implementation
    public function set layerVisibilities(value:Array):void

See also


Example
Using LayerVisibility in any group layer:
            <awx:layerVisibilities>
               <awx:LayerVisibility name="U.S. Highways" visible="false"/>
               <awx:LayerVisibility name="U.S. Counties" visible="false"/>
            </awx:layerVisibilities>
         

Method detail
getLayerVisibilities()method
public function getLayerVisibilities(responder:IResponder):void

Getting layer visibilities can be an asynchronous process, so it requires a responder. An ArrayCollection of LayerVisibility objects will be returned. Changes to the returned ArrayCollection can then be detected by listening to the ArrayCollection's CollectionEvent.COLLECTION_CHANGE event.

Parameters
responder:IResponder — the responder to be called with the LayerVisibilities.

See also