| Package | com.esri.aws.awx.map.layers.overlays.style |
| Class | public class BubbleMarkerStyle |
| Inheritance | BubbleMarkerStyle BaseMarkerStyle BaseStyle |
| Subclasses | QueryBubbleMarkerStyle |
Note: Although styles have public properties (such as color, fill, alpha) they should not be edited after construction.
<mx:Script>
<![CDATA[
import com.esri.aws.awx.map.layers.overlays.style.BubbleMarkerStyle;
var private redBubbleMarkerStyle:BubbleMarkerStyle = new BubbleMarkerStyle(0xFF0000);
]]>
</mx:Script>
...
<awx:BubbleMarker label="Red AS style" geoX="50" geoY="-20" style="{redBubbleMarkerStyle}"/>
<awx:BubbleMarker geoX="10" geoY="-20" label="Red MXML style">
<awx:style>
<awx:BubbleMarkerStyle>
<awx:fillColor>0x0000FF</awx:fillColor>
</awx:BubbleMarkerStyle>
</awx:style>
</awx:BubbleMarker>
See also
| Property | Defined by | ||
|---|---|---|---|
| dropShadow : Boolean
If true, includes a shadow.
| BubbleMarkerStyle | ||
| dropShadowAlpha : Number
The alpha value (transparency) of the marker shadow.
| BubbleMarkerStyle | ||
| dropShadowAngle : int
The angle at which the shadow is applied to the marker.
| BubbleMarkerStyle | ||
| dropShadowColor : uint
The shadow color of the marker.
| BubbleMarkerStyle | ||
| dropShadowLength : int
The length of the marker shadow (in pixels).
| BubbleMarkerStyle | ||
| elementHorizontalAlign : String
The horizontal alignment of the element layout ("left", "right", "center").
| BubbleMarkerStyle | ||
| fillColor : uint
The fill color of the marker.
| BubbleMarkerStyle | ||
| horizontalAlign : String
The horizontal alignment of the label and title layout ("left", "right", "center").
| BubbleMarkerStyle | ||
| horizontalGap : int
The gap between horizontal items in the marker layout (in pixels).
| BubbleMarkerStyle | ||
| lineColor : uint
The line color of the marker.
| BubbleMarkerStyle | ||
| lineThickness : int
The thickness of the marker's border.
| BubbleMarkerStyle | ||
| paddingBottom : int
The number of pixels between the marker's left border and the bottom edge of its content area.
| BubbleMarkerStyle | ||
| paddingLeft : int
The number of pixels between the marker's left border and the left edge of its content area.
| BubbleMarkerStyle | ||
| paddingRight : int
The number of pixels between the marker's left border and the right edge of its content area.
| BubbleMarkerStyle | ||
| paddingTop : int
The number of pixels between the marker's left border and the top edge of its content area.
| BubbleMarkerStyle | ||
| tweenSpeed : int
The speed (in miliseconds) at which the transitions occur.
| BubbleMarkerStyle | ||
| verticalGap : int
The gap between vertical items in the clicked marker layout (in pixels).
| BubbleMarkerStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
BubbleMarkerStyle(fillColor:uint = 0xFFFFFF, lineColor:uint = 0xE95020, lineThickness:int = 1, tweenSpeed:int = 200, verticalGap:int = 3, horizontalGap:int = 3, horizontalAlign:String = "left", elementHorizontalAlign:String = "center", paddingLeft:int = 5, paddingRight:int = 5, paddingTop:int = 5, paddingBottom:int = 5, dropShadow:Boolean = true, dropShadowColor:uint = 0x000000, dropShadowLength:int = 4, dropShadowAngle:int = 45, dropShadowAlpha:Number = .7)
Creates a new BubbleMarkerStyle.
| BubbleMarkerStyle | ||
|
cleanUp(overlayObject:OverlayObject):void
Cleans up the OverlayObject to restore it to its original state.
| BubbleMarkerStyle | ||
![]() |
Creates the default ToolTip (lat/lon) if overlayObject.toolTip is null.
| BaseMarkerStyle | |
| Method | Defined by | ||
|---|---|---|---|
|
All subclasses MUST override this function to draw the marker.
| BubbleMarkerStyle | ||
| dropShadow | property |
dropShadow:Boolean [read-write]If true, includes a shadow.
The default value is true.
public function get dropShadow():Boolean
public function set dropShadow(value:Boolean):void
| dropShadowAlpha | property |
dropShadowAlpha:Number [read-write]The alpha value (transparency) of the marker shadow.
The default value is 0.7.
public function get dropShadowAlpha():Number
public function set dropShadowAlpha(value:Number):void
| dropShadowAngle | property |
dropShadowAngle:int [read-write]The angle at which the shadow is applied to the marker.
The default value is 45.
public function get dropShadowAngle():int
public function set dropShadowAngle(value:int):void
| dropShadowColor | property |
dropShadowColor:uint [read-write]The shadow color of the marker.
The default value is 0x000000 (black)..
public function get dropShadowColor():uint
public function set dropShadowColor(value:uint):void
| dropShadowLength | property |
dropShadowLength:int [read-write]The length of the marker shadow (in pixels).
The default value is 4.
public function get dropShadowLength():int
public function set dropShadowLength(value:int):void
| elementHorizontalAlign | property |
elementHorizontalAlign:String [read-write]The horizontal alignment of the element layout ("left", "right", "center").
The default value is "center".
public function get elementHorizontalAlign():String
public function set elementHorizontalAlign(value:String):void
| fillColor | property |
fillColor:uint [read-write]The fill color of the marker.
The default value is 0xFFFFFF (white)..
public function get fillColor():uint
public function set fillColor(value:uint):void
| horizontalAlign | property |
horizontalAlign:String [read-write]The horizontal alignment of the label and title layout ("left", "right", "center").
The default value is "left".
public function get horizontalAlign():String
public function set horizontalAlign(value:String):void
| horizontalGap | property |
horizontalGap:int [read-write]The gap between horizontal items in the marker layout (in pixels).
The default value is 3.
public function get horizontalGap():int
public function set horizontalGap(value:int):void
| lineColor | property |
lineColor:uint [read-write]The line color of the marker.
The default value is 0xE95020 (red)..
public function get lineColor():uint
public function set lineColor(value:uint):void
| lineThickness | property |
lineThickness:int [read-write]The thickness of the marker's border.
The default value is 1.
public function get lineThickness():int
public function set lineThickness(value:int):void
| paddingBottom | property |
paddingBottom:int [read-write]The number of pixels between the marker's left border and the bottom edge of its content area.
The default value is 5.
public function get paddingBottom():int
public function set paddingBottom(value:int):void
| paddingLeft | property |
paddingLeft:int [read-write]The number of pixels between the marker's left border and the left edge of its content area.
The default value is 5.
public function get paddingLeft():int
public function set paddingLeft(value:int):void
| paddingRight | property |
paddingRight:int [read-write]The number of pixels between the marker's left border and the right edge of its content area.
The default value is 5.
public function get paddingRight():int
public function set paddingRight(value:int):void
| paddingTop | property |
paddingTop:int [read-write]The number of pixels between the marker's left border and the top edge of its content area.
The default value is 5.
public function get paddingTop():int
public function set paddingTop(value:int):void
| tweenSpeed | property |
tweenSpeed:int [read-write]The speed (in miliseconds) at which the transitions occur.
The default value is 200.
public function get tweenSpeed():int
public function set tweenSpeed(value:int):void
| verticalGap | property |
verticalGap:int [read-write]The gap between vertical items in the clicked marker layout (in pixels).
The default value is 3 .
public function get verticalGap():int
public function set verticalGap(value:int):void
| BubbleMarkerStyle | () | constructor |
public function BubbleMarkerStyle(fillColor:uint = 0xFFFFFF, lineColor:uint = 0xE95020, lineThickness:int = 1, tweenSpeed:int = 200, verticalGap:int = 3, horizontalGap:int = 3, horizontalAlign:String = "left", elementHorizontalAlign:String = "center", paddingLeft:int = 5, paddingRight:int = 5, paddingTop:int = 5, paddingBottom:int = 5, dropShadow:Boolean = true, dropShadowColor:uint = 0x000000, dropShadowLength:int = 4, dropShadowAngle:int = 45, dropShadowAlpha:Number = .7)Creates a new BubbleMarkerStyle.
ParametersfillColor:uint (default = 0xFFFFFF) — The fill color of the marker -- default is 0xFFFFFF (white).
|
|
lineColor:uint (default = 0xE95020) — The line color of the marker -- default is 0xE95020 (red).
|
|
lineThickness:int (default = 1) — The thickness of the marker's border -- default is 1.
|
|
tweenSpeed:int (default = 200) — The speed (in miliseconds) at which the transitions occur -- default is 200.
|
|
verticalGap:int (default = 3) — The gap between vertical items in the clicked marker layout -- default is 3 pixels.
|
|
horizontalGap:int (default = 3) — The gap between horizontal items in the marker layout -- default is 3 pixels.
|
|
horizontalAlign:String (default = "left") — The horizontal alignment of the label and title layout ("left", "right", "center") -- default is "left".
|
|
elementHorizontalAlign:String (default = "center") — The horizontal alignment of the element layout ("left", "right", "center") -- default is "center".
|
|
paddingLeft:int (default = 5) — The number of pixels between the marker's left border and the left edge of its content area -- default is 5.
|
|
paddingRight:int (default = 5) — The number of pixels between the marker's left border and the right edge of its content area -- default is 5.
|
|
paddingTop:int (default = 5) — The number of pixels between the marker's left border and the top edge of its content area -- default is 5.
|
|
paddingBottom:int (default = 5) — The number of pixels between the marker's left border and the bottom edge of its content area -- default is 5.
|
|
dropShadow:Boolean (default = true) — Boolean value on whether or not to include a shadow -- default is true.
|
|
dropShadowColor:uint (default = 0x000000) — The shadow color of the marker -- default is 0x000000 (black).
|
|
dropShadowLength:int (default = 4) — The length of the marker shadow -- default is 4 pixels.
|
|
dropShadowAngle:int (default = 45) — The angle at which the shadow is applied to the marker -- default is 45.
|
|
dropShadowAlpha:Number (default = .7) — The alpha value (transparency) of the marker shadow -- default is .7
|
| cleanUp | () | method |
public override function cleanUp(overlayObject:OverlayObject):voidCleans up the OverlayObject to restore it to its original state.
ParametersoverlayObject:OverlayObject — The OverlayObject to be cleaned.
|
| drawMarker | () | method |
protected override function drawMarker(overlayObject:OverlayObject, projectionModel:IProjectionModel):voidAll subclasses MUST override this function to draw the marker.
ParametersoverlayObject:OverlayObject — the overlay object to draw on.
|
|
projectionModel:IProjectionModel — the projection model.
|