Maps SDK for Web
tt.MapDataEvent
A 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
coord: Coordinate
The coordinate of the tile if the event has a dataType of
source and the event is related to the loading of a tile.
dataType: String
The type of data that has changed. One of 'source' or 'style'.
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 the loading of a tile.
type: String
The event type.