Class GoogleMapPoly.GoogleMapPolyClickEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
com.vaadin.flow.component.ClickEvent<GoogleMapPolygon>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapPoly.GoogleMapPolyClickEvent
All Implemented Interfaces:
Serializable
Enclosing class:
GoogleMapPoly

@DomEvent("google-map-poly-click") public static class GoogleMapPoly.GoogleMapPolyClickEvent extends ClickEvent<GoogleMapPolygon>
See Also:
  • Constructor Details

    • GoogleMapPolyClickEvent

      public GoogleMapPolyClickEvent(GoogleMapPoly source, boolean fromClient, @EventData("event.detail.latLng.lat()") double lat, @EventData("event.detail.latLng.lng()") double lon)
      Creates a new event with the click coordinates as separate lat/lon values.
      Parameters:
      source - the polygon that was clicked
      fromClient - whether the event originated on the client side
      lat - the latitude of the click
      lon - the longitude of the click
    • GoogleMapPolyClickEvent

      @Deprecated public GoogleMapPolyClickEvent(GoogleMapPoly source, boolean fromClient, elemental.json.JsonValue latLng)
      Deprecated.
      Creates a new event with the click coordinates as a JSON value.
      Parameters:
      source - the polygon that was clicked
      fromClient - whether the event originated on the client side
      latLng - a JSON object containing lat and lng properties
  • Method Details

    • getLatitude

      public double getLatitude()
    • getLongitude

      public double getLongitude()