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 LoadGeoJSONParameters
LoadGeoJSONParameters: GeoJSONWorkerOptions & {
data?: GeoJSON;
dataDiff?: GeoJSONSourceDiff;
request?: RequestParameters;
source: string;
type: "geojson";
updateCluster?: boolean;
}
data?: GeoJSON;
dataDiff?: GeoJSONSourceDiff;
request?: RequestParameters;
source: string;
type: "geojson";
updateCluster?: boolean;
}
Type Declaration
Optionaldata?: GeoJSONGeoJSON data to set as the source's data.
OptionaldataDiff?: GeoJSONSourceDiffGeoJSONSourceDiff to apply to the existing GeoJSON source data.
Optionalrequest?: RequestParametersRequest parameters including a URL to fetch GeoJSON data.
source: string
The geojson source ID.
type: "geojson"
OptionalupdateCluster?: booleanUpdate the supercluster using the latest worker cluster options.
Parameters needed to load GeoJSON to the worker - must specify either a
request,dataordataDiff.