All Superinterfaces:
ExecutableFunctions, Identifiable
All Known Implementing Classes:
Marker

public interface MarkerFunctions extends ExecutableFunctions
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 Type
    Method
    Description
    Returns the current geographical position of the marker.
    Returns the current icon used by the marker
    default void
    setIcon(Icon icon)
    Changes the marker icon.
    default void
    setLatLng(LatLng latLng)
    Changes the marker position to the given point.
    default void
    setOpacity(double opacity)
    Changes the opacity of the marker.
    default void
    setZIndexOffset(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, executeJs

    Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.Identifiable

    getUuid
  • Method Details

    • callLatLng

      default CompletableFuture<LatLng> callLatLng()
      Returns the current geographical position of the marker.
      Returns:
      the current geographical position of the marker
    • setLatLng

      default void setLatLng(LatLng latLng)
      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

      default void setIcon(Icon icon)
      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