Interface MarkerFunctions
- All Superinterfaces:
ExecutableFunctions,Identifiable
- All Known Implementing Classes:
Marker
In addition to shared layer methods like addTo() and remove() and popup
methods like bindPopup() you can also use the following methods:
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<LatLng> Returns the current geographical position of the marker.getIcon()Returns the current icon used by the markerdefault voidChanges the marker icon.default voidChanges the marker position to the given point.default voidsetOpacity(double opacity) Changes the opacity of the marker.default voidsetZIndexOffset(int offset) Changes the zIndex offset of the marker.Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.map.functions.ExecutableFunctions
call, call, executeJs, executeJsMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.Identifiable
getUuid
-
Method Details
-
callLatLng
Returns the current geographical position of the marker.- Returns:
- the current geographical position of the marker
-
setLatLng
Changes the marker position to the given point.- Parameters:
latLng- the new position of the marker
-
setZIndexOffset
default void setZIndexOffset(int offset) Changes the zIndex offset of the marker.- Parameters:
offset- the zIndex offset value
-
getIcon
Icon getIcon()Returns the current icon used by the marker- Returns:
- the current icon used by the marker
-
setIcon
Changes the marker icon.- Parameters:
icon- the new icon options
-
setOpacity
default void setOpacity(double opacity) Changes the opacity of the marker.- Parameters:
opacity- the new opacity of the marker
-