Events
The different types of events that Goong GL JS can raise.
You can also find additional event documentation for: Map, Marker, Popup, and GeolocationControl.
Evented
src/util/evented.jsMethods mixed in to other classes for event capabilities.
Instance Members
MapMouseEvent
src/ui/events.jsMapMouseEvent is the event type for mouse-related map events.
Extends Object.
Instance Members
MapTouchEvent
src/ui/events.jsMapTouchEvent is the event type for touch-related map events.
Extends Object.
Instance Members
MapBoxZoomEvent
src/ui/events.jsA MapBoxZoomEvent is the event type for boxzoom-related map events.
originalEvent can be a Map.event:click when the zoom is triggered by a UI event.
Properties
originalEvent
(MouseEvent)MapDataEvent
src/ui/events.jsA MapDataEvent object is emitted with the Map.event:data
and Map.event:dataloading events. Possible values for
dataTypes are:
'source': The non-tile data associated with any source'style': The style used by the map
Properties
isSourceLoaded
(boolean?): True if the event has a
dataType
of
source
and the source has no outstanding network requests.
source
(Object?): The
style spec representation of the source
if the event has a
dataType
of
source
.
sourceDataType
(string?): Included if the event has a
dataType
of
source
and the event signals
that internal data has been received or changed. Possible values are
metadata
and
content
.
tile
(Object?): The tile being loaded or changed, if the event has a
dataType
of
source
and
the event is related to loading of a tile.
coord
(Coordinate?): The coordinate of the tile if the event has a
dataType
of
source
and
the event is related to loading of a tile.
MapWheelEvent
src/ui/events.jsMapWheelEvent is the event type for the wheel map event.
Extends Object.