Options
All
  • Public
  • Public/Protected
  • All
Menu

This object is sent in an event when a user clicks on an icon on the map. The place ID of this place is stored in the placeId member. To prevent the default info window from showing up, call the stop() method on this event to prevent it being propagated. Learn more about place IDs in the Places API developer guide.

Hierarchy

Index

Properties

Methods

Properties

domEvent: Event | KeyboardEvent | MouseEvent | TouchEvent | PointerEvent

The corresponding native DOM event. Developers should not rely on target, currentTarget, relatedTarget and path properties being defined and consistent. Developers should not also rely on the DOM structure of the internal implementation of the Maps API. Due to internal event mapping, the domEvent may have different semantics from the google.maps.MapMouseEvent (e.g. a google.maps.MapMouseEvent "click" may have a domEvent of type KeyboardEvent).

latLng: null | LatLng

The latitude/longitude that was below the cursor when the event occurred.

placeId: null | string

The place ID of the place that was clicked. This place ID can be used to query more information about the feature that was clicked.

Learn more about place IDs in the Places API developer guide.

Methods

  • stop(): void
  • Prevents this event from propagating further.

    Returns void

Generated using TypeDoc