We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.map.events.
Class MapViewMoveEndEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<MapBase>
-
- com.vaadin.flow.component.map.events.MapViewMoveEndEvent
-
All Implemented Interfaces:
@DomEvent("map-view-moveend") public class MapViewMoveEndEvent extends 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, elemental.json.JsonArray center, elemental.json.JsonArray extent)
-
Method Summary
All Methods Modifier and Type Method Description Coordinate
getCenter()
Gets the
View
's updated center coordinatesExtent
getExtent()
Gets the updated extent (or bounding box) of the
View
's currently visible area.float
getRotation()
Gets the
View
's updated rotationfloat
getZoom()
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
-
-
-
-
Constructor Detail
-
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 Detail
-
getRotation
public float getRotation()
Gets the
View
's updated rotationReturns:
updated rotation in radians
-
getZoom
public float getZoom()
Gets the
View
's updated zoom levelReturns:
updated zoom level
-
getCenter
public Coordinate getCenter()
Gets the
View
's updated center coordinatesReturns:
updated center coordinates
-
-