Class IWMarker

Extends IWOverlay.

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.
 
Methods inherited from class IWOverlay
setCoordinate(coordinate)
getCoordinate()
setHotspot(hotspot)
getHotspot()
getLayer()
redraw()
destroyOverlay()
beforeAppend()
afterRemove()
Methods inherited from class IWDraggable
allowDraggingOutsideParent(isDraggingOutsideParentAllowed)
isDraggingOutsideParentAllowed()
setOnMouseMoveContainer(container)
getOnMouseMoveContainer()
setDraggingBounds(bounds)
getDraggingBounds()
setDraggable(isDraggable)
isDraggable()
setDraggableContainer(draggableContainer)
getDraggableContainer()
setDragButton(button)
getDragButton()
Methods inherited from class IWMapElement
isDisplayed()
getParent()
setParent(parent)
isVisible()
setVisible(visible)
setPrintable(printable)
isPrintable()
setContainerClassname(classname)
getContainer()
setContainer(newContainer)
setId(id)
getId()
onContextMenu(event)
onMouseUp(event)
onMouseDown(event)
onMouseMove(event)
onMouseOut(event)
onMouseOver(event)
onClick(event)
onDblClick(event)
onSelect(event)
onMouseWheel(event)
destroyMapElement()
registerEvents(container)


Constructor Detail

IWMarker

IWMarker(map, coordinate, label)

Method Detail

addScaleDependentIcon

void addScaleDependentIcon(scaleDependentIcon)

afterAppend

afterAppend()

beforeRemove

beforeRemove()

destroy

void destroy()

getDefaultIcon

IWIcon getDefaultIcon()

getScaleDependentIcons

IWScaleDependentIcon[] getScaleDependentIcons()

setDefaultIcon

void setDefaultIcon(icon)

setLabel

void setLabel(label)

setScaleDependentIcons

void setScaleDependentIcons(newScaleDependentIcons)

toString

String toString()

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)