materialOverrides property

List<ModelMaterialOverride>? materialOverrides
getter/setter pair

A collection of material overrides.

A fixed value baked into the model. Changing it means re-sending the whole models source property, so use this for a value that shouldn't change once set. For frequent or interactive updates, use materialOverrideNames with a data-driven ModelLayer property and MapboxMap.setFeatureState, which merges and is cheap to call often.

Implementation

List<ModelMaterialOverride>? materialOverrides;