Class MapViewMoveEndEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<MapBase>
com.vaadin.flow.component.map.events.MapViewMoveEndEvent
All Implemented Interfaces:
Serializable

@DomEvent("map-view-moveend") public class MapViewMoveEndEvent extends com.vaadin.flow.component.ComponentEvent<MapBase>
Fired when viewport movement has ended.
See Also:
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapViewMoveEndEvent(MapBase source, boolean fromClient, double rotation, double zoom, com.fasterxml.jackson.databind.node.ArrayNode center, com.fasterxml.jackson.databind.node.ArrayNode extent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the View's updated center coordinates
    Gets the updated extent (or bounding box) of the View's currently visible area.
    double
    Gets the View's updated rotation
    double
    Gets the View's updated zoom level

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MapViewMoveEndEvent

      public MapViewMoveEndEvent(MapBase source, boolean fromClient, @EventData("event.detail.rotation") double rotation, @EventData("event.detail.zoom") double zoom, @EventData("event.detail.center") com.fasterxml.jackson.databind.node.ArrayNode center, @EventData("event.detail.extent") com.fasterxml.jackson.databind.node.ArrayNode extent)
  • Method Details

    • getRotation

      public double getRotation()
      Gets the View's updated rotation
      Returns:
      updated rotation in radians
    • getZoom

      public double getZoom()
      Gets the View's updated zoom level
      Returns:
      updated zoom level
    • getCenter

      public Coordinate getCenter()
      Gets the View's updated center coordinates
      Returns:
      updated center coordinates
    • getExtent

      public Extent getExtent()
      Gets the updated extent (or bounding box) of the View's currently visible area. Can be used to check whether a specific coordinate is within the viewport.
      Returns:
      updated extent