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
Fired when viewport movement has ended.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMapViewMoveEndEvent
(MapBase source, boolean fromClient, double rotation, double zoom, elemental.json.JsonArray center, elemental.json.JsonArray extent) -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
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") elemental.json.JsonArray center, @EventData("event.detail.extent") elemental.json.JsonArray extent)
-
-
Method Details
-
getRotation
public double getRotation()Gets theView
's updated rotation- Returns:
- updated rotation in radians
-
getZoom
public double getZoom()Gets theView
's updated zoom level- Returns:
- updated zoom level
-
getCenter
Gets theView
's updated center coordinates- Returns:
- updated center coordinates
-
getExtent
Gets the updated extent (or bounding box) of theView
's currently visible area. Can be used to check whether a specific coordinate is within the viewport.- Returns:
- updated extent
-