SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IWMarker
is an example implementation of the IWOverlay
interface.
IWMarker
can be used to mark POI`s on the map.
Constructor Summary | |
IWMarker(map, coordinate)
Creates a new IWMarker object.
|
Method Summary | |
void
|
addScaleDependentIcon(scaleDependentIcon)
Adds a scale dependent icon to the marker. |
void
|
afterAppend()
This method will be called by the addOverlay method after the marker has been added to the map.
|
void
|
beforeRemove()
This method will be called by the removeOverlay method after the marker has been removed from the
map.
|
void
|
destroy()
Destroys the marker. |
IWIcon
|
getDefaultIcon()
Returns the default icon for this marker. |
Array
|
getScaleDependentIcons()
Returns the scale dependent icons. |
void
|
setDefaultIcon(icon)
Sets the default icon. |
void
|
setScaleDependentIcons(newScaleDependentIcons)
Sets the scale dependent icons to the marker. |
String
|
toString()
Returns a string representation of this marker. |
Constructor Detail |
IWMarker(map, coordinate)
IWMarker
object.
IWMap map
IWCoordinate coordinate
Method Detail |
void addScaleDependentIcon(scaleDependentIcon)
IWScaleDependentIcon scaleDependentIcon
void
void afterAppend()
addOverlay
method after the marker has been added to the map.
void
void beforeRemove()
removeOverlay
method after the marker has been removed from the
map. We use this method for cleaning memory leaks by deleting the image object.
void
void destroy()
void
IWIcon getDefaultIcon()
IWIcon
Array getScaleDependentIcons()
Array
scaleDependentIcons
void setDefaultIcon(icon)
IWIcon icon
void
void setScaleDependentIcons(newScaleDependentIcons)
IWScaleDependentIcon[] newScaleDependentIcons
void
String toString()
String