Packagecom.mapquest.tilemap.pois
Classpublic class Declutter
InheritanceDeclutter Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
  DOT_CIRCLE : Number = 1
[static]
Declutter
  DOT_IMAGE : Number = 2
[static]
Declutter
  DOT_NONE : Number = 0
[static]
Declutter
  MODE_LINE : Number = 2
[static]
Declutter
  MODE_NONE : Number = 0
[static]
Declutter
  MODE_STACK : Number = 1
[static]
Declutter
Public Methods
 MethodDefined by
  
Declutter
  
drawLeaderLine(poi:Poi):void
Draws a leader line from the decluttered POI to the original Lat/Lng.
Declutter
  
getDeclutterIcon():DeclutterIcon
Returns the declutter icon for this map.
Declutter
  
Returns the declutter mode for this map.
Declutter
  
Returns the color of the declutter mode 2 leader line.
Declutter
  
Declutter
  
Declutter
  
Returns the leader line to end with 0 - no dot (or image) 1 - a reference dot (Default) 2 - or an image
Declutter
  
getNextPageIcon():DeclutterIcon
Returns the next page declutter icon for this map.
Declutter
  
getPOIDims():void
Declutter mode 2 functions start
Declutter
  
getPOIDims():void
Stores the POI x,y coordinates and dimension of all POIs in poiCollection variable
Declutter
  
getPrevPageIcon():DeclutterIcon
Returns the prev page declutter icon for this map.
Declutter
  
getRolloverDrag():Boolean
Returns the drag status of rollovers.
Declutter
  
Returns the stack height setting of the MQDeclutter object.
Declutter
  
Returns the stack width setting of the MQDeclutter object.
Declutter
  
setDeclutterIcon(icon:Object, width:int, height:int):void
Sets the declutter icon to use for this map.
Declutter
  
setDeclutterMode(declutterMode:int):void
Sets the declutter mode for this map.
Declutter
  
setLeaderLineColor(c:Number):void
Sets the color of the declutter mode 2 leader line.
Declutter
  
Declutter
  
Declutter
  
setLeaderLineDotMode(b:Number):void
Specifies the leader line to end with 0 - no dot (or image) 1 - a reference dot (Default) 2 - or an image
Declutter
  
setNextPageIcon(icon:Object, width:int, height:int):void
Sets the next page declutter icon to use for this map.
Declutter
  
setPrevPageIcon(icon:Object, width:int, height:int):void
Sets the prev page declutter icon to use for this map.
Declutter
  
setRolloverDrag(b:Boolean):void
Sets whether to drag the rollover with the poi.
Declutter
  
setStackHeight(n:int):void
Sets the height (in icons) of the decluttered poi grouping.
Declutter
  
setStackWidth(n:int):void
Sets the width (in icons) of the decluttered poi grouping.
Declutter
  
update():void
Declutter
Property detail
DOT_CIRCLEproperty
public static var DOT_CIRCLE:Number = 1
DOT_IMAGEproperty 
public static var DOT_IMAGE:Number = 2
DOT_NONEproperty 
public static var DOT_NONE:Number = 0
MODE_LINEproperty 
public static var MODE_LINE:Number = 2
MODE_NONEproperty 
public static var MODE_NONE:Number = 0
MODE_STACKproperty 
public static var MODE_STACK:Number = 1
Constructor detail
Declutter()constructor
public function Declutter(map:TileMap)Parameters
map:TileMap
Method detail
drawLeaderLine()method
public function drawLeaderLine(poi:Poi):void

Draws a leader line from the decluttered POI to the original Lat/Lng. Takes a poi as a parameter.

Parameters
poi:Poi
getDeclutterIcon()method 
public function getDeclutterIcon():DeclutterIcon

Returns the declutter icon for this map.

Returns
DeclutterIcon

See also

getDeclutterMode()method 
public function getDeclutterMode():int

Returns the declutter mode for this map.

Returns
int

See also

getLeaderLineColor()method 
public function getLeaderLineColor():Number

Returns the color of the declutter mode 2 leader line.

Returns
Number

See also

getLeaderLineDeclutterDotIcon()method 
public function getLeaderLineDeclutterDotIcon():Sprite

Returns
Sprite
getLeaderLineDeclutterDotImageURL()method 
public function getLeaderLineDeclutterDotImageURL():String

Returns
String
getLeaderLineDotMode()method 
public function getLeaderLineDotMode():Number

Returns the leader line to end with 0 - no dot (or image) 1 - a reference dot (Default) 2 - or an image

Returns
Number

See also

getNextPageIcon()method 
public function getNextPageIcon():DeclutterIcon

Returns the next page declutter icon for this map.

Returns
DeclutterIcon

See also

getPOIDims()method 
public function getPOIDims():void

Declutter mode 2 functions start

getPOIDims()method 
public function getPOIDims():void

Stores the POI x,y coordinates and dimension of all POIs in poiCollection variable

getPrevPageIcon()method 
public function getPrevPageIcon():DeclutterIcon

Returns the prev page declutter icon for this map.

Returns
DeclutterIcon

See also

getRolloverDrag()method 
public function getRolloverDrag():Boolean

Returns the drag status of rollovers.

Returns
Boolean

See also

getStackHeight()method 
public function getStackHeight():int

Returns the stack height setting of the MQDeclutter object.

Returns
int

See also

getStackWidth()method 
public function getStackWidth():int

Returns the stack width setting of the MQDeclutter object.

Returns
int

See also

setDeclutterIcon()method 
public function setDeclutterIcon(icon:Object, width:int, height:int):void

Sets the declutter icon to use for this map.

Parameters
icon:Object — to image or actual display object.
 
width:int — width size of the prev page declutter image in pixels.
 
height:int — The height size of the prev page declutter image in pixels.

See also

setDeclutterMode()method 
public function setDeclutterMode(declutterMode:int):void

Sets the declutter mode for this map.

Parameters
declutterMode:int — declutter mode to set. 0 = no declutter 1 = stack decluttering 2 = leader-line declutter

See also

setLeaderLineColor()method 
public function setLeaderLineColor(c:Number):void

Sets the color of the declutter mode 2 leader line. Default is 0x000000.

Parameters
c:Number — value of the leaderline color.

See also

setLeaderLineDeclutterDotIcon()method 
public function setLeaderLineDeclutterDotIcon(s:Sprite):voidParameters
s:Sprite
setLeaderLineDeclutterDotImageURL()method 
public function setLeaderLineDeclutterDotImageURL(url:String):voidParameters
url:String
setLeaderLineDotMode()method 
public function setLeaderLineDotMode(b:Number):void

Specifies the leader line to end with 0 - no dot (or image) 1 - a reference dot (Default) 2 - or an image

Parameters
b:Number — b Leader line ends with no dot,a dot,or an image

See also

setNextPageIcon()method 
public function setNextPageIcon(icon:Object, width:int, height:int):void

Sets the next page declutter icon to use for this map.

Parameters
icon:Object — to image or actual display object.
 
width:int — width size of the prev page declutter image in pixels.
 
height:int — The height size of the prev page declutter image in pixels.

See also

setPrevPageIcon()method 
public function setPrevPageIcon(icon:Object, width:int, height:int):void

Sets the prev page declutter icon to use for this map.

Parameters
icon:Object — to image or actual display object.
 
width:int — width size of the prev page declutter image in pixels.
 
height:int — The height size of the prev page declutter image in pixels.

See also

setRolloverDrag()method 
public function setRolloverDrag(b:Boolean):void

Sets whether to drag the rollover with the poi. Default is true.

Parameters
b:Boolean — b True to include the rollover with the poi drag, false otherwise..

See also

setStackHeight()method 
public function setStackHeight(n:int):void

Sets the height (in icons) of the decluttered poi grouping. Default is 2.Minimum is 1.

Parameters
n:int — n The height of the decluttered poi grouping.

See also

setStackWidth()method 
public function setStackWidth(n:int):void

Sets the width (in icons) of the decluttered poi grouping. Default is 5. Minimum is 2.

Parameters
n:int — n The width of the decluttered poi grouping.

See also

update()method 
public function update():void