| Package | com.mapquest.tilemap.pois |
| Class | public class ImageMapIcon |
| Inheritance | ImageMapIcon MapIcon flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| loaderHeight : Number | ImageMapIcon | ||
| loaderWidth : Number | ImageMapIcon | ||
| Method | Defined by | ||
|---|---|---|---|
|
ImageMapIcon(source:ImageMapIcon = null)
Constructs a MapIcon object.
| ImageMapIcon | ||
![]() |
Returns the anchor offset for this icon.
| MapIcon | |
![]() |
getHeight():Number
| MapIcon | |
![]() |
getImage():DisplayObject
Returns the image for this icon.
| MapIcon | |
![]() |
Returns the info window anchor point for this icon.
| MapIcon | |
![]() |
getLabel():String
| MapIcon | |
![]() |
getLabelFormat():TextFormat
| MapIcon | |
![]() |
getShadow():DisplayObject
Returns the shadow image for this icon.
| MapIcon | |
![]() | MapIcon | ||
![]() |
getWidth():Number
| MapIcon | |
![]() |
isLabelVisible():Boolean
| MapIcon | |
![]() |
redraw():void
Redraws this icon.
| MapIcon | |
![]() |
setAnchorOffset(point:IPointXY):void
Sets the anchor offset of this icon.
| MapIcon | |
![]() |
setImage(image:DisplayObject, width:Number = -1, height:Number = -1, recalculateAnchors:Boolean = true):void
| MapIcon | |
|
setImageURL(url:String, width:Number, height:Number, recalculateAnchors:Boolean = true):void
Sets the image for this icon.
| ImageMapIcon | ||
![]() |
setInfoWindowAnchor(point:IPointXY):void
Sets the info window anchor point for this icon.
| MapIcon | |
![]() |
setLabel(label:String, frmt:TextFormat = null):void
| MapIcon | |
![]() |
setLabelVisible(b:Boolean):void
| MapIcon | |
![]() |
setParentPoi(poi:Poi):void
| MapIcon | |
![]() |
setShadow(shadow:DisplayObject, x:Number = 0, y:Number = 0, width:Number = -1, height:Number = -1):void
Sets the shadow image for this icon.
| MapIcon | |
|
setShadowURL(url:String, x:Number, y:Number, width:Number, height:Number):void
Sets the shadow image for this icon.
| ImageMapIcon | ||
| loaderHeight | property |
protected var loaderHeight:Number
| loaderWidth | property |
protected var loaderWidth:Number
| ImageMapIcon | () | constructor |
public function ImageMapIcon(source:ImageMapIcon = null)Constructs a MapIcon object. By default the image will be a star, the anchor offset will be the center of the image, and the info window anchor will be the top center of the image.
Parameterssource:ImageMapIcon (default = null) — source OPTIONAL: If specified this MapIcon will be a
clone of this parameter.
|
| setImageURL | () | method |
public function setImageURL(url:String, width:Number, height:Number, recalculateAnchors:Boolean = true):voidSets the image for this icon.
Parametersurl:String — url The image URL string.
|
|
width:Number — width The width size of the image in pixels.
|
|
height:Number — height The height size of the image in pixels.
|
|
recalculateAnchors:Boolean (default = true) — recalculateAnchors OPTIONAL: true (default) to recalculate
anchor points; false will preserve current anchor points. The recalculated
anchor offset will be the center of the image, and the recalculated info
window anchor will be the top center of the image.
|
See also
| setShadowURL | () | method |
public function setShadowURL(url:String, x:Number, y:Number, width:Number, height:Number):voidSets the shadow image for this icon.
Parametersurl:String — url The shadow image URL string.
|
|
x:Number — left The left position of the shadow image in pixels.
|
|
y:Number — top The top position of the shadow image in pixels.
|
|
width:Number — width The width size of the shadow image in pixels.
|
|
height:Number — height The height size of the shadow image in pixels.
false (default) otherwise.
|
See also