ModelSourceModel

Constructors

Link copied to clipboard

Types

Link copied to clipboard
class Builder(val id: String)

Builder for ModelSourceModel.

Functions

Link copied to clipboard

An object defining custom properties of the model. Properties are accessible as feature properties in expressions.

Link copied to clipboard

An array of one or more model material names whose properties will be overridden from model layer paint properties.

Link copied to clipboard

A collection of material overrides.

Link copied to clipboard

An array of one or more model node names whose transform will be overridden from model layer paint properties.

Link copied to clipboard

A collection of node overrides.

Link copied to clipboard

Orientation of the model in euler angles x, y, z. Default value: 0,0,0. The unit of orientation is in degrees.

Link copied to clipboard

Position of the model in longitude and latitude lng, lat. Default value: 0,0. Minimum value: -180,-90. Maximum value: 180,90.

Link copied to clipboard

A URL to a model resource. Supported protocols are http:, https:, and mapbox://<Model ID>.

Properties

Link copied to clipboard

An object defining custom properties of the model. Properties are accessible as feature properties in expressions.

Link copied to clipboard
val id: String

The model's identifier.

Link copied to clipboard

An array of one or more model material names whose properties will be overridden from model layer paint properties.

Link copied to clipboard

A collection of material overrides.

Link copied to clipboard

An array of one or more model node names whose transform will be overridden from model layer paint properties.

Link copied to clipboard

A collection of node overrides.

Link copied to clipboard

Orientation of the model in euler angles x, y, z. Default value: 0,0,0. The unit of orientation is in degrees.

Link copied to clipboard

Position of the model in longitude and latitude lng, lat. Default value: 0,0. Minimum value: -180,-90. Maximum value: 180,90.

Link copied to clipboard
val uri: String?

A URL to a model resource. Supported protocols are http:, https:, and mapbox://<Model ID>.