Packagecom.mapquest.tilemap.pois
Classpublic class ImageMapIcon
InheritanceImageMapIcon Inheritance MapIcon Inheritance flash.display.Sprite



Protected Properties
 PropertyDefined by
  loaderHeight : Number
ImageMapIcon
  loaderWidth : Number
ImageMapIcon
Public Methods
 MethodDefined by
  
ImageMapIcon(source:ImageMapIcon = null)
Constructs a MapIcon object.
ImageMapIcon
 Inherited
Returns the anchor offset for this icon.
MapIcon
 Inherited
getHeight():Number
MapIcon
 Inherited
getImage():DisplayObject
Returns the image for this icon.
MapIcon
 Inherited
Returns the info window anchor point for this icon.
MapIcon
 Inherited
getLabel():String
MapIcon
 Inherited
getLabelFormat():TextFormat
MapIcon
 Inherited
getShadow():DisplayObject
Returns the shadow image for this icon.
MapIcon
 Inherited
MapIcon
 Inherited
getWidth():Number
MapIcon
 Inherited
isLabelVisible():Boolean
MapIcon
 Inherited
redraw():void
Redraws this icon.
MapIcon
 Inherited
Sets the anchor offset of this icon.
MapIcon
 Inherited
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
 Inherited
Sets the info window anchor point for this icon.
MapIcon
 Inherited
setLabel(label:String, frmt:TextFormat = null):void
MapIcon
 Inherited
setLabelVisible(b:Boolean):void
MapIcon
 Inherited
setParentPoi(poi:Poi):void
MapIcon
 Inherited
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
Property detail
loaderHeightproperty
protected var loaderHeight:Number
loaderWidthproperty 
protected var loaderWidth:Number
Constructor detail
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.

Parameters
source:ImageMapIcon (default = null) — source OPTIONAL: If specified this MapIcon will be a clone of this parameter.
Method detail
setImageURL()method
public function setImageURL(url:String, width:Number, height:Number, recalculateAnchors:Boolean = true):void

Sets the image for this icon.

Parameters
url: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):void

Sets the shadow image for this icon.

Parameters
url: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