Package eu.webtoolkit.jwt
Class WLeafletMap.LeafletMarker
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
-
- eu.webtoolkit.jwt.WLeafletMap.Marker
-
- eu.webtoolkit.jwt.WLeafletMap.LeafletMarker
-
- Enclosing class:
- WLeafletMap
public static class WLeafletMap.LeafletMarker extends WLeafletMap.Marker
A standard leaflet marker.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Constructor Summary
Constructors Constructor Description LeafletMarker(WLeafletMap.Coordinate pos)Create a new marker at the given position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateItemJS(java.lang.StringBuilder ss, java.lang.StringBuilder postJS, long id)Writes the JS code to create this item to the stream.voidsetOptions(com.google.gson.JsonObject options)Set the options of the marker.-
Methods inherited from class eu.webtoolkit.jwt.WLeafletMap.Marker
addPopup, addTooltip, getPopup, getRemovePopup, getRemoveTooltip, getTooltip, setMap
-
Methods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
clicked, 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
-
LeafletMarker
public LeafletMarker(WLeafletMap.Coordinate pos)
Create a new marker at the given position.
-
-
Method Detail
-
setOptions
public void setOptions(com.google.gson.JsonObject options)
Set the options of the marker.Set the options that will be passed to the
WLeafletMapmarker.See https://leafletjs.com/reference.html#marker for the list of options.
-
createItemJS
protected void createItemJS(java.lang.StringBuilder ss, java.lang.StringBuilder postJS, long id)Description copied from class:WLeafletMap.AbstractMapItemWrites the JS code to create this item to the stream.This method should write in
ssthe JS code that creates the item. ThepostJSstream can be used to write JS code that should be executed after the item has been created.- Specified by:
createItemJSin classWLeafletMap.AbstractMapItem
-
-