Class AbstractMapClickEvent<C extends GeoMap>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
io.jmix.mapsflowui.component.event.AbstractMapClickEvent<C>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MapClickEvent
,MapDoubleClickEvent
,MapSingleClickEvent
public abstract class AbstractMapClickEvent<C extends GeoMap>
extends com.vaadin.flow.component.ComponentEvent<C>
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.locationtech.jts.geom.Coordinate
protected final MouseEventDetails
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAbstractMapClickEvent
(C source, boolean fromClient, org.locationtech.jts.geom.Coordinate coordinate, MouseEventDetails mouseEventDetails) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Coordinate
Gets the coordinate of click.Methods inherited from class com.vaadin.flow.component.ComponentEvent
isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
coordinate
protected final org.locationtech.jts.geom.Coordinate coordinate -
mouseEventDetails
-
-
Constructor Details
-
AbstractMapClickEvent
public AbstractMapClickEvent(C source, boolean fromClient, org.locationtech.jts.geom.Coordinate coordinate, MouseEventDetails mouseEventDetails)
-
-
Method Details
-
getSource
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate()Gets the coordinate of click. The coordinate will be in user projection (default is EPSG:4326) that can be changed byGeoMap.setProjection(CRS)
.- Returns:
- coordinate of the click
-
getMouseEventDetails
- Returns:
- mouse information
-