Options
All
  • Public
  • Public/Protected
  • All
Menu

This object is returned from mouse events on polylines and polygons.

Hierarchy

Index

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).

edge?: number

The index of the edge within the path beneath the cursor when the event occurred, if the event occurred on a mid-point on an editable polygon.

latLng: null | LatLng

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

path?: number

The index of the path beneath the cursor when the event occurred, if the event occurred on a vertex and the polygon is editable. Otherwise undefined.

vertex?: number

The index of the vertex beneath the cursor when the event occurred, if the event occurred on a vertex and the polyline or polygon is editable. If the event does not occur on a vertex, the value is undefined.

Methods

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

    Returns void

Generated using TypeDoc