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
A standard leaflet marker.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new marker at the given position. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateItemJS(StringBuilder ss, 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, setMapMethods inherited from class eu.webtoolkit.jwt.WLeafletMap.AbstractMapItem
clicked, doubleClicked, getMap, getPosition, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, move, needsUpdate, unrender, updateMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, resendFormData, setFormData, setObjectName, tr
-
Constructor Details
-
LeafletMarker
Create a new marker at the given position.
-
-
Method Details
-
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
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
-