|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MQDeclutter
The MQDeclutter object controls how the poi declutter functionality
operates. A default MQDeclutter object gets created automatically with
each tilemap and is accessed via the getDeclutter() method of the
MQTileMap object.
Defined in mqdeclutter.js
| Field Summary | |
Object |
cpCollection
|
Object |
leaderLineDotImage
|
Object |
leaderLineDotMode
|
| Constructor Summary | |
MQDeclutter
(map)
Constructs a MQDeclutter object. |
|
| Method Summary | |
Object
|
getDeclutterIcon()
Returns the declutter icon for this map. |
Object
|
getDeclutterMode()
Returns the declutter mode for this map. |
Object
|
getLeaderLineColor()
Returns the color of the declutter mode 2 leader line. |
Object
|
getLeaderLineDotImage()
Returns the leader line dot image. |
Object
|
getLeaderLineDotMode()
Returns the draw status of the leader line reference dot. |
Object
|
getNextPageIcon()
Returns the next page declutter icon for this map. |
Object
|
getPrevPageIcon()
Returns the prev page declutter icon for this map. |
Object
|
getRolloverDrag()
Returns the drag status of rollovers. |
Object
|
getStackHeight()
Returns the stack height setting of the MQDeclutter object. |
Object
|
getStackWidth()
Returns the stack width setting of the MQDeclutter object. |
void
|
setDeclutterIcon(<string> url, <int> width, <int> height)
Sets the declutter icon to use for this map. |
void
|
setDeclutterMode(<int> declutterMode)
Sets the declutter mode for this map. |
void
|
setDeclutterOverIcon(<string> url, <int> width, <int> height)
Sets the declutter icon to use for this map. |
void
|
setLeaderLineColor(<string> c)
Sets the color of the declutter mode 2 leader line. |
void
|
setLeaderLineDotImage(<string> url, <int> width, <int> height)
Sets the leader line dot image. |
void
|
setLeaderLineDotMode(<int> m)
Specifies how to draw the leader line reference dot. |
void
|
setNextPageIcon(<string> url, <int> width, <int> height)
Sets the next page declutter icon to use for this map. |
void
|
setPrevPageIcon(<string> url, <int> width, <int> height)
Sets the prev page declutter icon to use for this map. |
void
|
setRolloverDrag(<boolean> b)
Sets whether to drag the rollover with the poi. |
void
|
setStackHeight(<int> n)
Sets the height (in icons) of the decluttered poi grouping. |
void
|
setStackWidth(<int> n)
Sets the width (in icons) of the decluttered poi grouping. |
| Field Detail |
Object cpCollection
Object leaderLineDotImage
Object leaderLineDotMode
| Constructor Detail |
MQDeclutter(map)
MQTileMap - ) map The parent map of the MQDeclutter object.
| Method Detail |
Object getDeclutterIcon()
Object getDeclutterMode()
Object getLeaderLineColor()
Object getLeaderLineDotImage()
Object getLeaderLineDotMode()
Object getNextPageIcon()
Object getPrevPageIcon()
Object getRolloverDrag()
Object getStackHeight()
Object getStackWidth()
void setDeclutterIcon(<string> url, <int> width, <int> height)
url - The image URL string.
width - The width size of the declutter icon image in pixels.
height - The height size of the declutter icon image in pixels.
void setDeclutterMode(<int> declutterMode)
declutterMode - - The declutter mode to set. 0 = no declutter 1 = stack decluttering 2 = leader-line declutter
void setDeclutterOverIcon(<string> url, <int> width, <int> height)
url - The image URL string.
width - The width size of the declutter icon image in pixels.
height - The height size of the declutter icon image in pixels.
void setLeaderLineColor(<string> c)
c - Hex value of the leaderline color.
void setLeaderLineDotImage(<string> url, <int> width, <int> height)
url - Full url to the image.
width - Width of the image.
height - Height of the image.
void setLeaderLineDotMode(<int> m)
m - Mode to use for reference point. 0 = no dot, 1 = draw dot, 2 = dot image.
void setNextPageIcon(<string> url, <int> width, <int> height)
url - The image URL string.
width - The width size of the next page declutter image in pixels.
height - The height size of the next page declutter image in pixels.
void setPrevPageIcon(<string> url, <int> width, <int> height)
url - The image URL string.
width - The width size of the prev page declutter image in pixels.
height - The height size of the prev page declutter image in pixels.
void setRolloverDrag(<boolean> b)
b - True to include the rollover with the poi drag, false otherwise..
void setStackHeight(<int> n)
n - The height of the decluttered poi grouping.
void setStackWidth(<int> n)
n - The width of the decluttered poi grouping.
|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||