| Package | com.esri.ags.symbols |
| Class | public class PictureMarkerSymbol |
| Inheritance | PictureMarkerSymbol MarkerSymbol Symbol flash.events.EventDispatcher |
Note: As of version 2.0, you can also directly pass in a Bitmap or ByteArray as source.
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | angle : Number
The angle of the marker. | MarkerSymbol | |
| height : Number
Height of the symbol (in pixels). | PictureMarkerSymbol | ||
| source : Object
Source of the image. | PictureMarkerSymbol | ||
| width : Number
Width of the symbol (in pixels). | PictureMarkerSymbol | ||
![]() | 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 | ||
|---|---|---|---|
PictureMarkerSymbol(source:Object = null, width:Number = 0, height:Number = 0, xoffset:Number = 0, yoffset:Number = 0, angle:Number = 0)
Creates a new PictureMarkerSymbol. | PictureMarkerSymbol | ||
![]() | 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 | |
| height | property |
height:NumberHeight of the symbol (in pixels). If this symbol height is larger or smaller than the height of the actual image, then the symbol height will shrink or stretch accordingly.
public function get height():Number public function set height(value:Number):void| source | property |
source:ObjectSource of the image. The default is a blue pushpin.
public function get source():Object public function set source(value:Object):void| width | property |
width:NumberWidth of the symbol (in pixels). If this symbol width is larger or smaller than the width of the actual image, then the symbol width will shrink or stretch accordingly.
public function get width():Number public function set width(value:Number):void| PictureMarkerSymbol | () | Constructor |
public function PictureMarkerSymbol(source:Object = null, width:Number = 0, height:Number = 0, xoffset:Number = 0, yoffset:Number = 0, angle:Number = 0)Creates a new PictureMarkerSymbol. Note that 'xoffset', 'yoffset' and 'angle' were added to the constructor in version 1.2.
Parameterssource:Object (default = null) — Source of the image.
| |
width:Number (default = 0) — Width of the symbol in pixels.
| |
height:Number (default = 0) — Height of the symbol in pixels.
| |
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 image [added to constructor in version 1.2].
|
<esri:PictureMarkerSymbol id="pms_embedded" source="@Embed(source='assets/fire.gif')"/>
<esri:PictureMarkerSymbol
id="pms_by_url"
source="http://help.arcgis.com/en/webapi/flex/samples/assets/warningsmall.gif"/>