| Package | com.esri.ags.symbol |
| Class | public class CompositeSymbol |
| Inheritance | CompositeSymbol Symbol flash.events.EventDispatcher |
Note: as of version 1.1, you can create empty composite symbols.
Default MXML Propertysymbols
<esri:CompositeSymbol>
<esri:SimpleMarkerSymbol style="circle" color="0x000000" size="20"/>
<esri:SimpleMarkerSymbol style="triangle" color="0xFFFF00" size="20"/>
<esri:SimpleMarkerSymbol style="triangle" color="0xFFFF00" size="20" angle="180"/>
</esri:CompositeSymbol>
<esri:CompositeSymbol>
<esri:SimpleLineSymbol style="solid" alpha="1" color="0x0008F13"/>
<esri:SimpleMarkerSymbol style="square" size="8" color="0x0008F13"/>
</esri:CompositeSymbol>See also
| Property | Defined by | ||
|---|---|---|---|
| symbols : Object
Used to draw multiple symbols on point, line or polygon features in a GraphicsLayer.
| CompositeSymbol | ||
| Method | Defined by | ||
|---|---|---|---|
|
CompositeSymbol(symbols:Object = null)
Creates a new CompositeSymbol.
| CompositeSymbol | ||
![]() |
clear(sprite:Sprite):void
Clears the graphics that were drawn to the sprite object.
| Symbol | |
![]() |
destroy(sprite:Sprite):void
Removes all the graphics that were drawn to the sprite object and resets its properties.
| Symbol | |
![]() |
Draw the graphics on the sprite object.
| Symbol | |
| symbols | property |
symbols:Object [read-write]
Used to draw multiple symbols on point, line or polygon features in a GraphicsLayer.
This property lets you use either an Array, an ArrayCollection, or a single Symbol.
If you set the symbols property to an Array, it will be converted to an ArrayCollection.
If you set the property to an ArrayCollection, it will be used directly.
If you set the property to a single Symbol, it will be wrapped in a new ArrayCollection.
The default value is an empty ArrayCollection.
This property can be used as the source for data binding.
Implementation public function get symbols():Object
public function set symbols(value:Object):void
See also
| CompositeSymbol | () | constructor |
public function CompositeSymbol(symbols:Object = null)Creates a new CompositeSymbol.
Parameterssymbols:Object (default = null) — The symbols that make up the composite symbol.
|