Packagecom.esri.aws.awx.map.layers.overlays.style
Classpublic class BubbleMarkerStyle
InheritanceBubbleMarkerStyle Inheritance BaseMarkerStyle Inheritance BaseStyle
SubclassesQueryBubbleMarkerStyle

BubbleMarkerStyle controls the presentation of the default bubble marker.

Note: Although styles have public properties (such as color, fill, alpha) they should not be edited after construction.


Example
Sample ActionScript usage of red BubbleMarker:
     <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}"/>
     

Sample MXML usage of red BubbleMarker:
         <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

http://www.arcwebservices.com/v2006/awxlab/Content/flex/troubleshooting.htm#crossdomain


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
 Inherited
draw(overlayObject:OverlayObject, projectionModel:IProjectionModel):void
Creates the default ToolTip (lat/lon) if overlayObject.toolTip is null.
BaseMarkerStyle
Protected Methods
 MethodDefined by
  
drawMarker(overlayObject:OverlayObject, projectionModel:IProjectionModel):void
All subclasses MUST override this function to draw the marker.
BubbleMarkerStyle
Property detail
dropShadowproperty
dropShadow:Boolean  [read-write]

If true, includes a shadow.

The default value is true.

Implementation
    public function get dropShadow():Boolean
    public function set dropShadow(value:Boolean):void
dropShadowAlphaproperty 
dropShadowAlpha:Number  [read-write]

The alpha value (transparency) of the marker shadow.

The default value is 0.7.

Implementation
    public function get dropShadowAlpha():Number
    public function set dropShadowAlpha(value:Number):void
dropShadowAngleproperty 
dropShadowAngle:int  [read-write]

The angle at which the shadow is applied to the marker.

The default value is 45.

Implementation
    public function get dropShadowAngle():int
    public function set dropShadowAngle(value:int):void
dropShadowColorproperty 
dropShadowColor:uint  [read-write]

The shadow color of the marker.

The default value is 0x000000 (black)..

Implementation
    public function get dropShadowColor():uint
    public function set dropShadowColor(value:uint):void
dropShadowLengthproperty 
dropShadowLength:int  [read-write]

The length of the marker shadow (in pixels).

The default value is 4.

Implementation
    public function get dropShadowLength():int
    public function set dropShadowLength(value:int):void
elementHorizontalAlignproperty 
elementHorizontalAlign:String  [read-write]

The horizontal alignment of the element layout ("left", "right", "center").

The default value is "center".

Implementation
    public function get elementHorizontalAlign():String
    public function set elementHorizontalAlign(value:String):void
fillColorproperty 
fillColor:uint  [read-write]

The fill color of the marker.

The default value is 0xFFFFFF (white)..

Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
horizontalAlignproperty 
horizontalAlign:String  [read-write]

The horizontal alignment of the label and title layout ("left", "right", "center").

The default value is "left".

Implementation
    public function get horizontalAlign():String
    public function set horizontalAlign(value:String):void
horizontalGapproperty 
horizontalGap:int  [read-write]

The gap between horizontal items in the marker layout (in pixels).

The default value is 3.

Implementation
    public function get horizontalGap():int
    public function set horizontalGap(value:int):void
lineColorproperty 
lineColor:uint  [read-write]

The line color of the marker.

The default value is 0xE95020 (red)..

Implementation
    public function get lineColor():uint
    public function set lineColor(value:uint):void
lineThicknessproperty 
lineThickness:int  [read-write]

The thickness of the marker's border.

The default value is 1.

Implementation
    public function get lineThickness():int
    public function set lineThickness(value:int):void
paddingBottomproperty 
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.

Implementation
    public function get paddingBottom():int
    public function set paddingBottom(value:int):void
paddingLeftproperty 
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.

Implementation
    public function get paddingLeft():int
    public function set paddingLeft(value:int):void
paddingRightproperty 
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.

Implementation
    public function get paddingRight():int
    public function set paddingRight(value:int):void
paddingTopproperty 
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.

Implementation
    public function get paddingTop():int
    public function set paddingTop(value:int):void
tweenSpeedproperty 
tweenSpeed:int  [read-write]

The speed (in miliseconds) at which the transitions occur.

The default value is 200.

Implementation
    public function get tweenSpeed():int
    public function set tweenSpeed(value:int):void
verticalGapproperty 
verticalGap:int  [read-write]

The gap between vertical items in the clicked marker layout (in pixels).

The default value is 3 .

Implementation
    public function get verticalGap():int
    public function set verticalGap(value:int):void
Constructor detail
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.

Parameters
fillColor: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
Method detail
cleanUp()method
public override function cleanUp(overlayObject:OverlayObject):void

Cleans up the OverlayObject to restore it to its original state.

Parameters
overlayObject:OverlayObject — The OverlayObject to be cleaned.
drawMarker()method 
protected override function drawMarker(overlayObject:OverlayObject, projectionModel:IProjectionModel):void

All subclasses MUST override this function to draw the marker.

Parameters
overlayObject:OverlayObject — the overlay object to draw on.
 
projectionModel:IProjectionModel — the projection model.