| Package | com.esri.ags.symbols |
| Class | public class CompositeSymbol |
| Inheritance | CompositeSymbol Symbol flash.events.EventDispatcher |
Note: CompositeSymbol do not support swatches, and thus cannot be used with the Editor component.
Note: as of version 1.1, you can create empty composite symbols.
Default MXML Propertysymbols
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 | |
![]() | createSwatch(width:Number = 50, height:Number = 50):UIComponent
Creates a swatch for a symbol which can be used in a legend. | 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 | |
![]() |
Initialize the sprite. | Symbol | |
| symbols | property |
symbols:Object
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.
public function get symbols():Object public function set symbols(value:Object):voidSee 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.
|
<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>