MapDataEvent interface

Event object returned by the maps when a data event occurs.

Extends

Properties

dataType

The type of data that has changed. Either "source" or "style".

isSourceLoaded

True if the event has a dataType of "source" and the source has no outstanding network requests.

map

The Map instance in which the event occurred on.

originalEvent

The original event that was fired.

source

If the dataType is "source" this is the related Source object.

sourceDataType

Specified if the dataType is "source" and the event signals that internal data has been received or changed. Either "metadata" or "content"

tile

The tile being loaded or changed. Specified if dataType is "source" and the event is related to loading of a tile.

type

The event type.

Property Details

dataType

The type of data that has changed. Either "source" or "style".

dataType: "style" | "source"

Property Value

"style" | "source"

isSourceLoaded

True if the event has a dataType of "source" and the source has no outstanding network requests.

isSourceLoaded?: boolean

Property Value

boolean

map

The Map instance in which the event occurred on.

map: Map

Property Value

Map

originalEvent

The original event that was fired.

originalEvent?: Event

Property Value

Event

source

If the dataType is "source" this is the related Source object.

source?: Source

Property Value

sourceDataType

Specified if the dataType is "source" and the event signals that internal data has been received or changed. Either "metadata" or "content"

sourceDataType?: "metadata" | "content"

Property Value

"metadata" | "content"

tile

The tile being loaded or changed. Specified if dataType is "source" and the event is related to loading of a tile.

tile?: Tile

Property Value

type

The event type.

type: string

Property Value

string