Skip to content

Instantly share code, notes, and snippets.

@timdeschryver
Created November 3, 2019 16:25
Show Gist options
  • Select an option

  • Save timdeschryver/207c1b36b6cd1a52c96e9a65d0876df0 to your computer and use it in GitHub Desktop.

Select an option

Save timdeschryver/207c1b36b6cd1a52c96e9a65d0876df0 to your computer and use it in GitHub Desktop.
Property JavaScript API Method Description
boundsChanged bounds_changed This event is fired when the viewport bounds have changed
centerChanged center_changed This event is fired when the map center property changes
mapClick click This event is fired when the user clicks on the map
mapDblclick dblclick This event is fired when the user double-clicks on the map. Note that the click event will also fire, right before this one
mapDrag drag This event is repeatedly fired while the user drags the map
mapDragend dragend This event is fired when the user stops dragging the map
mapDragstart dragstart This event is fired when the user starts dragging the map
headingChanged heading_changed This event is fired when the map heading property changes
idle idle This event is fired when the map becomes idle after panning or zooming
maptypeidChanged maptypeid_changed This event is fired when the mapTypeId property changes
mapMousemove mousemove This event is fired whenever the user's mouse moves over the map container
mapMouseout mouseout This event is fired when the user's mouse exits the map container
mapMouseover mouseover This event is fired when the user's mouse enters the map container
projectionChanged projection_changed This event is fired when the projection has changed
mapRightclick rightclick This event is fired when the DOM contextmenu event is fired on the map container
tilesloaded tilesloaded This event is fired when the visible tiles have finished loading
tiltChanged tilt_changed This event is fired when the map tilt property changes
zoomChanged zoom_changed This event is fired when the map zoom property changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment