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
An abstract marker.
This marker can be placed on a WLeafletMap
at certain coordinates.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
createMarkerJS
(StringBuilder ss, StringBuilder postJS) protected WLeafletMap
getMap()
Get the current position.void
Move the marker.protected boolean
protected void
setMap
(WLeafletMap map) protected void
unrender()
protected void
update
(StringBuilder js)
-
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:
-
getMap
-
setMap
-
createMarkerJS
-
unrender
protected void unrender() -
needsUpdate
protected boolean needsUpdate() -
update
-