|
Mapstraction | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Marker
Defined in mapstraction.js
| Field Summary | |
Object |
attributes
|
Object |
location
|
Object |
onmap
|
Object |
pinID
|
Object |
proprietary_marker
|
| Constructor Summary | |
Marker(<LatLonPoint> point)
Marker create's a new marker pin |
|
| Method Summary | |
void
|
addData(options)
addData conviniently set a hash of options on a marker |
Object
|
addListener(<String> event, <Function> callback)
Adds event listener to marker Currently only implemented in Google |
Object
|
getAttribute(key)
getAttribute: gets the value of "key" |
void
|
hide()
hide the marker |
void
|
openBubble()
openBubble opens the infoBubble |
void
|
removeListener(<object> handler)
Removes event listener from marker Currently only implemented in Google |
void
|
setAttribute(key,value)
setAttribute: set an arbitrary key/value pair on a marker |
void
|
setChild(some_proprietary_marker)
|
void
|
setDraggable(<Bool> draggable)
setDraggable sets the draggable state of the marker |
void
|
setGroupName(sGrpName)
Markers are grouped up by this name. |
void
|
setHover(<Bool> hover)
setHover sets that the marker info is displayed on hover |
void
|
setHoverIcon(hoverIconUrl)
|
void
|
setIcon(<String> iconUrl, iconSize, iconAnchor)
setIcon sets the icon for a marker |
void
|
setIconAnchor(<String> iconAnchor)
setIconAnchor sets the anchor point for a marker |
void
|
setIconSize(<String> iconSize)
setIconSize sets the size of the icon for a marker |
void
|
setInfoBubble(<String> infoBubble)
setInfoBubble sets the html/text content for a bubble popup for a marker |
void
|
setInfoDiv(<String> infoDiv,<String> div)
setInfoDiv sets the text and the id of the div element where to the information useful for putting information in a div outside of the map |
void
|
setLabel(labelText)
|
void
|
setShadowIcon(iconShadowUrl, iconShadowSize)
setShadowIcon sets the icon for a marker |
void
|
show()
show the marker |
Object
|
toFreeEarth()
toFreeEarth returns a FreeEarth compatible marker pin |
Object
|
toGoogle()
toGoogle returns a Google Maps compatible marker pin |
Object
|
toMap24()
toMap24 returns a Map24 Location |
Object
|
toMapQuest()
toMapQuest returns a MapQuest compatible marker pin |
Object
|
toMicrosoft()
toMicrosoft returns a MSFT VE compatible marker pin |
Object
|
toMultiMap()
toMultiMap returns a MultiMap compatible marker pin |
Object
|
toOpenLayers()
toOpenLayers returns an OpenLayers compatible marker pin |
Object
|
toOpenSpace()
toOpenSpace returns an OpenSpace compatible marker pin |
Object
|
toViaMichelin()
toViaMichelin returns a ViaMichelin compatible marker pin |
Object
|
toYahoo()
toYahoo returns a Yahoo Maps compatible marker pin |
void
|
update()
Updates marker details from proprietary_marker Currently only implemented in Google |
| Field Detail |
Object attributes
Object location
Object onmap
Object pinID
Object proprietary_marker
| Constructor Detail |
Marker(<LatLonPoint> point)
point - the point on the map where the marker should go
| Method Detail |
void addData(options)
Object addListener(<String> event, <Function> callback)
event -
callback -
Object getAttribute(key)
void hide()
void openBubble()
void removeListener(<object> handler)
handler -
void setAttribute(key,value)
void setChild(some_proprietary_marker)
void setDraggable(<Bool> draggable)
draggable - set to true if marker should be draggable by the user
void setGroupName(sGrpName)
void setHover(<Bool> hover)
hover - set to true if marker should display info on hover
void setHoverIcon(hoverIconUrl)
void setIcon(<String> iconUrl, iconSize, iconAnchor)
iconUrl - The URL of the image you want to be the icon
void setIconAnchor(<String> iconAnchor)
iconAnchor - The array offset of the anchor point
void setIconSize(<String> iconSize)
iconSize - The array size in pixels of the marker image
void setInfoBubble(<String> infoBubble)
infoBubble - the html/text you want displayed
void setInfoDiv(<String> infoDiv,<String> div)
infoDiv - the html/text you want displayed
div - the element id to use for displaying the text/html
void setLabel(labelText)
void setShadowIcon(iconShadowUrl, iconShadowSize)
iconUrl - The URL of the image you want to be the icon
void show()
Object toFreeEarth()
Object toGoogle()
Object toMap24()
Object toMapQuest()
Object toMicrosoft()
Object toMultiMap()
Object toOpenLayers()
Object toOpenSpace()
Object toViaMichelin()
Object toYahoo()
void update()
|
Mapstraction | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||