Skip to content

LayerManagerCallbacks

Defined in: packages/core/src/renderer/layer-manager.ts:241

Callbacks for layer data loading events

PropertyTypeDescriptionDefined in
onDataError?(layerId, error) => void-packages/core/src/renderer/layer-manager.ts:244
onDataLoaded?(layerId, featureCount) => void-packages/core/src/renderer/layer-manager.ts:243
onDataLoading?(layerId) => void-packages/core/src/renderer/layer-manager.ts:242
onLayerHint?(layerId, message) => voidAn author hint about one layer that was still added (a before: naming no layer on the map: the layer goes on top instead of being dropped).packages/core/src/renderer/layer-manager.ts:262
onSourceError?(sourceId, error) => voidA source that can’t be read in this version (a reserved cloud-native format, ml-cnv): reported once, with a plain-language error. The source is added as an empty placeholder so its layers draw nothing rather than fail one by one.packages/core/src/renderer/layer-manager.ts:251
onSourceHint?(sourceId, message) => voidAn author hint about one source that still draws (a live merge update whose features have no updateKey: they are kept, not matched).packages/core/src/renderer/layer-manager.ts:267
onSourceLoaded?(sourceId, recovered) => voidA grid source’s field was decoded, or refit for a range: / units: change (grid source, U3): getGrid(sourceId) answers with it from now on. recovered when its last load had failed (the notice can go).packages/core/src/renderer/layer-manager.ts:257
onViewTooDense?(sourceId, dense) => voidA source read by view whose view holds more features than one read takes (true: nothing was read, the reader should zoom in), or no longer does (false) (ml-37r.17).packages/core/src/renderer/layer-manager.ts:273