Builder

class Builder(val id: String)

Builder for ModelSourceModel.

Parameters

id

the ID of the mode

Constructors

Link copied to clipboard
fun Builder(id: String)

Functions

Link copied to clipboard

Build the ModelSourceModel.

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
val id: String