Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

MapSourceDataEvent

MapSourceDataEvent = MapLibreEvent & object

Defined in: src/ui/events.ts:453

The source data event interface

Type declaration

dataType

dataType: "source"

isSourceLoaded

isSourceLoaded: boolean

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

source

source: SourceSpecification

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

sourceDataChanged?

optional sourceDataChanged: boolean

sourceDataType

sourceDataType: MapSourceDataType

sourceId

sourceId: string

tile

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.