|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MQMapIcon
A MQMapIcon encapsulates the image functionality that is used to
represent a MQPoi..
Defined in features.js
| Constructor Summary | |
MQMapIcon
(<MQMapIcon> source)
Constructs a MQMapIcon object. |
|
| Method Summary | |
MQPoint
|
getAnchorOffset()
Returns the anchor offset for this icon. |
HTMLElement
|
getElement()
Returns the Element node of this icon. |
HTMLImageElement
|
getImage()
Returns the image for this icon. |
MQPoint
|
getInfoWindowAnchor()
Returns the info window anchor point for this icon. |
HTMLImageElement
|
getShadow()
Returns the shadow image for this icon. |
void
|
redraw()
Redraws this icon. |
void
|
setAnchorOffset(<MQPoint> mqPoint)
Sets the anchor offset of this icon. |
void
|
setImage( <string> url, <int> width, <int> height, <boolean> recalculateAnchors, <boolean> imgIsPng)
Sets the image for this icon. |
void
|
setInfoWindowAnchor(<MQPoint> mqPoint)
Sets the info window anchor point for this icon. |
void
|
setShadow( <string> url, <int> left, <int> top, <int> width, <int> height, <boolean> imgIsPng)
Sets the shadow image for this icon. |
| Constructor Detail |
MQMapIcon(<MQMapIcon> source)
source - OPTIONAL: If specified this MQMapIcon will be a clone of this parameter.
| Method Detail |
MQPoint getAnchorOffset()
HTMLElement getElement()
HTMLImageElement getImage()
MQPoint getInfoWindowAnchor()
HTMLImageElement getShadow()
void redraw()
void setAnchorOffset(<MQPoint> mqPoint)
mqPoint - The anchor offset.
void setImage( <string> url, <int> width, <int> height, <boolean> recalculateAnchors, <boolean> imgIsPng)
url - The image URL string.
width - The width size of the image in pixels.
height - The height size of the image in pixels.
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.
imgIsPng - OPTIONAL: true if the image is a PNG, false (default) otherwise.
void setInfoWindowAnchor(<MQPoint> mqPoint)
mqPoint - The info window anchor point.
void setShadow( <string> url, <int> left, <int> top, <int> width, <int> height, <boolean> imgIsPng)
url - The shadow image URL string.
left - The left position of the shadow image in pixels.
top - The top position of the shadow image in pixels.
width - The width size of the shadow image in pixels.
height - The height size of the shadow image in pixels.
imgIsPng - OPTIONAL: true if the image is a PNG, false (default) otherwise.
|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||