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 Details

    • coordinate

      protected final org.locationtech.jts.geom.Coordinate coordinate
    • mouseEventDetails

      protected final MouseEventDetails mouseEventDetails
  • Constructor Details

    • AbstractMapClickEvent

      public AbstractMapClickEvent(C source, boolean fromClient, org.locationtech.jts.geom.Coordinate coordinate, MouseEventDetails mouseEventDetails)
  • Method Details

    • getSource

      public C getSource()
      Overrides:
      getSource in class com.vaadin.flow.component.ComponentEvent<C extends GeoMap>
      Returns:
      map component
    • 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 by GeoMap.setProjection(CRS).
      Returns:
      coordinate of the click
    • getMouseEventDetails

      public MouseEventDetails getMouseEventDetails()
      Returns:
      mouse information