Type alias MapSourceDataEvent

MapSourceDataEvent: MapLibreEvent & {
    dataType: "source";
    isSourceLoaded: boolean;
    source: SourceSpecification;
    sourceDataType: MapSourceDataType;
    sourceId: string;
    tile: any;
}

The source data event interface

Type declaration

  • dataType: "source"
  • isSourceLoaded: boolean

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

  • source: SourceSpecification

    The style spec representation of the source if the event has a dataType of source.

  • sourceDataType: MapSourceDataType
  • sourceId: string
  • tile: any

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