For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias MapSourceDataEvent
MapSourceDataEvent: MapLibreEvent & {
dataType: "source";
isSourceLoaded: boolean;
shouldReloadTileOptions: GeoJSONSourceShouldReloadTileOptions;
source: SourceSpecification;
sourceDataChanged?: boolean;
sourceDataType: MapSourceDataType;
sourceId: string;
tile: any;
}
dataType: "source";
isSourceLoaded: boolean;
shouldReloadTileOptions: GeoJSONSourceShouldReloadTileOptions;
source: SourceSpecification;
sourceDataChanged?: boolean;
sourceDataType: MapSourceDataType;
sourceId: string;
tile: any;
}
Type Declaration
-
dataType: "source"
-
isSourceLoaded: boolean
True if the event has a
dataTypeofsourceand the source has no outstanding network requests. -
shouldReloadTileOptions: GeoJSONSourceShouldReloadTileOptions
Options to determine whether a tile should be reloaded.
-
source: SourceSpecification
The style spec representation of the source if the event has a
dataTypeofsource. -
OptionalsourceDataChanged?: boolean -
sourceDataType: MapSourceDataType
-
sourceId: string
-
tile: any
The tile being loaded or changed, if the event has a
dataTypeofsourceand the event is related to loading of a tile.
The source data event interface