OptionalauthRequest authorizer for fetching models URLs from a secured host.
MapLibre layer id (must be unique within the map).
Where to place the models — each a MultiModelInstance (position, modelIndex, and an
optional per-instance scale + heading).
The model library: each a glTF/GLB URL, raw GLB bytes, or a pre-built NormalizedMesh.
Each instance's modelIndex selects one of these.
OptionalonFired if a model fails to load (bad URL, non-OK HTTP, empty models/instances).
OptionalonFired once all models are resolved + uploaded and the instances are rendering.
OptionalopacityInitial opacity 0–1 (default 1).
OptionalrequestStatic auth/headers escape hatch for models URL fetches. Superseded by auth when both are set.
OptionalseamsGeometry codec seams (Draco/meshopt) if a model GLB is compressed.
OptionalvisibleInitial visibility (default true).
Options for MultiModelInstancesLayer.
id, a non-emptymodelslibrary and a non-emptyinstanceslist are required; everything else defaults. The pairing that matters ismodels+ each instance'smodelIndex: the index selects which library entry is drawn at that point, and an absent or out-of-range index falls back to model 0.