Class WLeafletMap.Marker
- Direct Known Subclasses:
WLeafletMap.LeafletMarker,WLeafletMap.WidgetMarker
- Enclosing class:
- WLeafletMap
This marker can be placed on a WLeafletMap at certain coordinates.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPopup(WLeafletMap.Popup popup) Add the popup to theWLeafletMap.Marker.voidaddTooltip(WLeafletMap.Tooltip tooltip) Add the tooltip to theWLeafletMap.Marker.getPopup()Return the popup added to theWLeafletMap.Marker.Removes the popup from theWLeafletMap.Marker.Removes the tooltip from theWLeafletMap.Marker.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, updateMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
Marker
-
-
Method Details
-
addPopup
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
Removes the popup from theWLeafletMap.Marker.- See Also:
-
getPopup
Return the popup added to theWLeafletMap.Marker.- See Also:
-
addTooltip
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
Removes the tooltip from theWLeafletMap.Marker.- See Also:
-
getTooltip
Return the tooltip added to theWLeafletMap.Marker.- See Also:
-
setMap
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:
-