Packagecom.esri.ags.layers.supportClasses
Classpublic class LayerDrawingOptions
InheritanceLayerDrawingOptions Inheritance flash.events.EventDispatcher
Implements IJSONSupport

Since : ArcGIS API 3.0 for Flex

Layer drawing options for setting rendering options on ArcGISDynamicMapServiceLayer.

Note: Requires ArcGIS 10.1 or later.

Default MXML Propertyrenderer

See also

com.esri.ags.layers.ArcGISDynamicMapServiceLayer.layerDrawingOptions
Live sample - UniqueValueRenderer
Live sample - Dynamic Labeling


Public Properties
 PropertyDefined By
  alpha : Number
The alpha.
LayerDrawingOptions
  labelClasses : Array
The label classes.
LayerDrawingOptions
  layerId : Number
The layer ID.
LayerDrawingOptions
  renderer : IRenderer
The renderer.
LayerDrawingOptions
  scaleSymbols : Boolean
Set to false to stop the layer from rendering its symbols based on scale.
LayerDrawingOptions
  showLabels : Boolean
Set to false to turn off the layers labels.
LayerDrawingOptions
Public Methods
 MethodDefined By
  
toJSON(key:String = null):Object
Convert this LayerDrawingOptions to a JSON object.
LayerDrawingOptions
Property Detail
alphaproperty
alpha:Number

The alpha. This is not used unless set explicitly.

This property can be used as the source for data binding.


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
labelClassesproperty 
labelClasses:Array

The label classes.

This property can be used as the source for data binding.


Implementation
    public function get labelClasses():Array
    public function set labelClasses(value:Array):void

See also

layerIdproperty 
layerId:Number

The layer ID.

This property can be used as the source for data binding.


Implementation
    public function get layerId():Number
    public function set layerId(value:Number):void
rendererproperty 
renderer:IRenderer

The renderer.

This property can be used as the source for data binding.


Implementation
    public function get renderer():IRenderer
    public function set renderer(value:IRenderer):void
scaleSymbolsproperty 
scaleSymbols:Boolean

Set to false to stop the layer from rendering its symbols based on scale. This is not used unless set explicitly.

This property can be used as the source for data binding.


Implementation
    public function get scaleSymbols():Boolean
    public function set scaleSymbols(value:Boolean):void
showLabelsproperty 
showLabels:Boolean

Set to false to turn off the layers labels. This is not used unless set explicitly.

This property can be used as the source for data binding.


Implementation
    public function get showLabels():Boolean
    public function set showLabels(value:Boolean):void
Method Detail
toJSON()method
public function toJSON(key:String = null):Object

Convert this LayerDrawingOptions to a JSON object. If you need a JSON formatted string, you can pass this LayerDrawingOptions directly to JSONUtil.encode().

Parameters

key:String (default = null) — Unused but required for compatibility with JSON.stringify().

Returns
Object — JSON object

See also