| Package | com.esri.ags.symbols |
| Class | public class SimpleMarkerSymbol |
| Inheritance | SimpleMarkerSymbol MarkerSymbol Symbol flash.events.EventDispatcher |
Default MXML Propertyoutline
See also
| Property | Defined By | ||
|---|---|---|---|
| alpha : Number
Marker symbol alpha (transparency). | SimpleMarkerSymbol | ||
![]() | angle : Number
The angle of the marker. | MarkerSymbol | |
| color : uint
Marker symbol color. | SimpleMarkerSymbol | ||
| outline : SimpleLineSymbol
Symbol outline for marker symbols of type "circle", "diamond", "square" and "triangle". | SimpleMarkerSymbol | ||
| size : Number
Marker symbol size. | SimpleMarkerSymbol | ||
| style : String
Marker symbol style. | SimpleMarkerSymbol | ||
![]() | xoffset : Number
The offset on the x-axis in pixels. | MarkerSymbol | |
![]() | yoffset : Number
The offset on the y-axis in pixels. | MarkerSymbol | |
| Method | Defined By | ||
|---|---|---|---|
SimpleMarkerSymbol(style:String, size:Number = 15, color:Number = 0x000000, alpha:Number = 1, xoffset:Number = 0, yoffset:Number = 0, angle:Number = 0, outline:SimpleLineSymbol = null)
Creates a new SimpleMarkerSymbol. | SimpleMarkerSymbol | ||
![]() | 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 | |
| Constant | Defined By | ||
|---|---|---|---|
| STYLE_CIRCLE : String = circle [static]
The marker is a circle. | SimpleMarkerSymbol | ||
| STYLE_CROSS : String = cross [static]
The marker is a cross. | SimpleMarkerSymbol | ||
| STYLE_DIAMOND : String = diamond [static]
The marker is a diamond. | SimpleMarkerSymbol | ||
| STYLE_SQUARE : String = square [static]
The marker is a square. | SimpleMarkerSymbol | ||
| STYLE_TRIANGLE : String = triangle [static]
The marker is a triangle. | SimpleMarkerSymbol | ||
| STYLE_X : String = x [static]
The marker is a diagonal cross. | SimpleMarkerSymbol | ||
| alpha | property |
alpha:NumberMarker symbol alpha (transparency). Possible values range from 0.0 (invisible, fully transparent) to 1.0 (opaque, fully visible).
The default value is 1.0 (opaque, fully visible).
public function get alpha():Number public function set alpha(value:Number):void| color | property |
color:uintMarker symbol color.
The default value is 0x000000 (black).
public function get color():uint public function set color(value:uint):void| outline | property |
outline:SimpleLineSymbolSymbol outline for marker symbols of type "circle", "diamond", "square" and "triangle". Does not apply to marker symbols of type "cross" and "x".
public function get outline():SimpleLineSymbol public function set outline(value:SimpleLineSymbol):void| size | property |
size:NumberMarker symbol size.
The default value is 15 pixels.
public function get size():Number public function set size(value:Number):void| style | property |
style:StringMarker symbol style.
The default value is STYLE_CIRCLE.
public function get style():String public function set style(value:String):void| SimpleMarkerSymbol | () | Constructor |
public function SimpleMarkerSymbol(style:String, size:Number = 15, color:Number = 0x000000, alpha:Number = 1, xoffset:Number = 0, yoffset:Number = 0, angle:Number = 0, outline:SimpleLineSymbol = null)Creates a new SimpleMarkerSymbol. Note that 'xoffset', 'yoffset' and 'angle' were added to the constructor in version 1.2, which changed the placement of the 'outline' parameter.
Parametersstyle:String (default = NaN) — The marker style.
| |
size:Number (default = 15) — The marker size in pixels.
| |
color:Number (default = 0x000000) — The marker fill color in RGB.
| |
alpha:Number (default = 1) — The transparency value.
| |
xoffset:Number (default = 0) — The offset on the x-axis in pixels [added to constructor in version 1.2].
| |
yoffset:Number (default = 0) — The offset on the y-axis in pixels [added to constructor in version 1.2].
| |
angle:Number (default = 0) — The angle of the marker [added to constructor in version 1.2].
| |
outline:SimpleLineSymbol (default = null) — The marker outline.
|
| STYLE_CIRCLE | Constant |
public static const STYLE_CIRCLE:String = circleThe marker is a circle. This is the default style.
| STYLE_CROSS | Constant |
public static const STYLE_CROSS:String = crossThe marker is a cross.
| STYLE_DIAMOND | Constant |
public static const STYLE_DIAMOND:String = diamondThe marker is a diamond.
| STYLE_SQUARE | Constant |
public static const STYLE_SQUARE:String = squareThe marker is a square.
| STYLE_TRIANGLE | Constant |
public static const STYLE_TRIANGLE:String = triangleThe marker is a triangle.
| STYLE_X | Constant |
public static const STYLE_X:String = xThe marker is a diagonal cross.
<esri:SimpleMarkerSymbol id="smsDefault"/>
<esri:SimpleMarkerSymbol id="smsBigRedSquare" size="18"
color="0xFF0000" style="square" alpha="0.7"/>
var myPointSymbol:SimpleMarkerSymbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CIRCLE, 10, 0xFF0000, 0.5
);