Skip to content

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).

ParameterType
modelMapModel
loadClassifyDataLoader

Promise<{ errors: ClassifyBakeError[]; model: MapModel; }>

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.