Class MapMoveEndEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<GeoMap>
io.jmix.mapsflowui.component.event.MapMoveEndEvent
All Implemented Interfaces:
Serializable

public class MapMoveEndEvent extends com.vaadin.flow.component.ComponentEvent<GeoMap>
An event is fired after the map is moved (e.g. after zooming, panning, dragging map).
See Also:
  • Field Details

    • center

      protected final org.locationtech.jts.geom.Coordinate center
    • extent

      protected final Extent extent
    • zoom

      protected final double zoom
    • rotation

      protected final double rotation
  • Constructor Details

    • MapMoveEndEvent

      public MapMoveEndEvent(GeoMap source, boolean fromClient, org.locationtech.jts.geom.Coordinate center, Extent extent, double zoom, double rotation)
  • Method Details

    • getCenter

      public org.locationtech.jts.geom.Coordinate getCenter()
      Returns:
      current geographic center of the map
    • getExtent

      public Extent getExtent()
      Returns:
      the extent (or bounding box) of the currently visible area
    • getZoom

      public double getZoom()
      Returns:
      zoom level
    • getRotation

      public double getRotation()
      Returns:
      rotation value in radians