SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IWMarker
is a simple implementation of the IWOverlay
interface.
An IWMarker
can be used to mark a location on the map.
The marker can be customize with an image, or a set of images depending on the zoom level of the map. The optional parameter label may be used to display a label on the marker, e.g. the number of a hit in a hit list. This label has to be formatted by CSS; see tutorial for an example.
Constructor Summary | |
IWMarker(map, coordinate, label)
Creates a new IWMarker object.
|
Method Summary | |
void
|
addScaleDependentIcon(scaleDependentIcon)
Adds a scale dependent icon to the marker. |
|
afterAppend()
undocumented |
|
beforeRemove()
undocumented |
void
|
destroy()
Destroys the marker. |
IWIcon
|
getDefaultIcon()
Returns the default icon for this marker. |
IWScaleDependentIcon[]
|
getScaleDependentIcons()
Returns the scale dependent icons. |
void
|
setDefaultIcon(icon)
Sets the default icon. |
void
|
setLabel(label)
Sets a label text which is displayed on the marker. |
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, label)
IWMarker
object.
IWMap map
IWCoordinate coordinate
String label
- a label to display in the marker (optional)
Method Detail |
void addScaleDependentIcon(scaleDependentIcon)
IWScaleDependentIcon scaleDependentIcon
void
afterAppend()
beforeRemove()
void destroy()
void
IWIcon getDefaultIcon()
IWIcon
IWScaleDependentIcon[] getScaleDependentIcons()
IWScaleDependentIcon[]
void setDefaultIcon(icon)
IWIcon icon
void
void setLabel(label)
label
- the text to display
void
void setScaleDependentIcons(newScaleDependentIcons)
IWScaleDependentIcon[] newScaleDependentIcons
void
String toString()
String