Package eu.webtoolkit.jwt
Class WLeafletMap.Marker
java.lang.Object
eu.webtoolkit.jwt.WLeafletMap.Marker
- Direct Known Subclasses:
WLeafletMap.LeafletMarker
,WLeafletMap.WidgetMarker
- Enclosing class:
- WLeafletMap
public abstract static class WLeafletMap.Marker
extends java.lang.Object
An abstract marker.
This marker can be placed on a WLeafletMap
at certain coordinates.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Marker(WLeafletMap.Coordinate pos)
-
Method Summary
Modifier and Type Method Description protected abstract void
createMarkerJS(java.lang.StringBuilder ss, java.lang.StringBuilder postJS)
protected WLeafletMap
getMap()
WLeafletMap.Coordinate
getPosition()
Get the current position.void
move(WLeafletMap.Coordinate pos)
Move the marker.protected boolean
needsUpdate()
protected void
setMap(WLeafletMap map)
protected void
unrender()
protected void
update(java.lang.StringBuilder js)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Marker
-
-
Method Details
-
move
Move the marker.If this marker belongs to a map, this will trigger an update of the
WLeafletMap
to move the marker. If it doesn't belong to a map, the position is merely updated. -
getPosition
Get the current position.- See Also:
move(WLeafletMap.Coordinate pos)
-
getMap
-
setMap
-
createMarkerJS
protected abstract void createMarkerJS(java.lang.StringBuilder ss, java.lang.StringBuilder postJS) -
unrender
protected void unrender() -
needsUpdate
protected boolean needsUpdate() -
update
protected void update(java.lang.StringBuilder js)
-