bakeClassify
bakeClassify(
model,load):Promise<{errors:ClassifyBakeError[];model:MapModel; }>
Defined in: packages/core/src/classify/lower.ts:150
Fetch the data of every pending method: layer and bake its breaks into
the model (mlym emit).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
model | MapModel |
load | ClassifyDataLoader |
Returns
Section titled “Returns”Promise<{ errors: ClassifyBakeError[]; model: MapModel; }>
Remarks
Section titled “Remarks”There is no honest fallback for a classed map whose classes are unknown — an all-grey style would look like a result — so a URL that cannot be loaded is an error, naming the layer, the URL and the fix. Each URL is loaded once, however many layers share it.