MapDataEvent interface
Event object returned by the maps when a data event occurs.
- Extends
Properties
| data |
The type of data that has changed.
Either |
| is |
True if the event has a |
| map | The |
| original |
The original event that was fired. |
| source | If the |
| source |
Specified if the |
| tile | The tile being loaded or changed.
Specified if |
| 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
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