Class GoogleMap.GoogleMapClickEvent

All Implemented Interfaces:
Serializable
Enclosing class:
GoogleMap

public static class GoogleMap.GoogleMapClickEvent extends ClickEvent<GoogleMap>
See Also:
  • Constructor Details

    • GoogleMapClickEvent

      public GoogleMapClickEvent(GoogleMap 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 map that was clicked
      fromClient - whether the event originated on the client side
      lat - the latitude of the click
      lon - the longitude of the click
    • GoogleMapClickEvent

      @Deprecated public GoogleMapClickEvent(GoogleMap source, boolean fromClient, elemental.json.JsonValue latLng)
      Deprecated.
      since 2.6.0, for removal. Use GoogleMapClickEvent(GoogleMap, boolean, double, double) instead.
      Creates a new event with the click coordinates as a JSON value.
      Parameters:
      source - the map 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()