Class WLeafletMap.Marker
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
-
- eu.webtoolkit.jwt.WLeafletMap.Marker
-
- Direct Known Subclasses:
WLeafletMap.LeafletMarker,WLeafletMap.WidgetMarker
- Enclosing class:
- WLeafletMap
public abstract static class WLeafletMap.Marker extends WLeafletMap.AbstractMapItem
An abstract marker.This marker can be placed on a
WLeafletMapat certain coordinates.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarker(WLeafletMap.Coordinate pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPopup(WLeafletMap.Popup popup)Add the popup to theWLeafletMap.Marker.voidaddTooltip(WLeafletMap.Tooltip tooltip)Add the tooltip to theWLeafletMap.Marker.WLeafletMap.PopupgetPopup()Return the popup added to theWLeafletMap.Marker.WLeafletMap.PopupgetRemovePopup()Removes the popup from theWLeafletMap.Marker.WLeafletMap.TooltipgetRemoveTooltip()Removes the tooltip from theWLeafletMap.Marker.WLeafletMap.TooltipgetTooltip()Return the tooltip added to theWLeafletMap.Marker.protected voidsetMap(WLeafletMap map)Set the map this item belongs to.-
Methods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
clicked, createItemJS, doubleClicked, getMap, getPosition, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, move, needsUpdate, unrender, update
-
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
-
-
-
Constructor Detail
-
Marker
protected Marker(WLeafletMap.Coordinate pos)
-
-
Method Detail
-
addPopup
public void addPopup(WLeafletMap.Popup popup)
Add the popup to theWLeafletMap.Marker.Add the popup to the
WLeafletMap.Marker. This will remove any popup previously added to thisWLeafletMap.Marker.A popup added to a
WLeafletMap.Markerwill have it's coordinate set to the coordinate of theWLeafletMap.Markerand will be closed by default. If theWLeafletMap.Marker's interactive option is true, the popup will switch between closed and open when theWLeafletMap.Markeris clicked.- See Also:
getRemovePopup()
-
getRemovePopup
public WLeafletMap.Popup getRemovePopup()
Removes the popup from theWLeafletMap.Marker.- See Also:
addPopup(WLeafletMap.Popup popup)
-
getPopup
public WLeafletMap.Popup getPopup()
Return the popup added to theWLeafletMap.Marker.- See Also:
addPopup(WLeafletMap.Popup popup)
-
addTooltip
public void addTooltip(WLeafletMap.Tooltip tooltip)
Add the tooltip to theWLeafletMap.Marker.Add the tooltip to the
WLeafletMap.Marker. This will remove any tooltip previously added to thisWLeafletMap.Marker.A tooltip added to a
WLeafletMap.Markerwill have it's coordinate set to the coordinate of theWLeafletMap.Marker. If theWLeafletMap.Marker's option interactive is true, the tooltip will switch between closed and open when the mouse hover over theWLeafletMap.Marker.- See Also:
getRemoveTooltip()
-
getRemoveTooltip
public WLeafletMap.Tooltip getRemoveTooltip()
Removes the tooltip from theWLeafletMap.Marker.- See Also:
addTooltip(WLeafletMap.Tooltip tooltip)
-
getTooltip
public WLeafletMap.Tooltip getTooltip()
Return the tooltip added to theWLeafletMap.Marker.- See Also:
addTooltip(WLeafletMap.Tooltip tooltip)
-
setMap
protected void setMap(WLeafletMap map)
Description copied from class:WLeafletMap.AbstractMapItemSet the map this item belongs to.This is called to set the map the item belongs to. You can override this function if you need to do something when the item is added to a map.
You should not call this function directly.
- Overrides:
setMapin classWLeafletMap.AbstractMapItem- See Also:
WLeafletMap.AbstractMapItem.getMap()
-
-