ModelSource

A collection of 3D models

See also

Constructors

Link copied to clipboard

Types

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

Builder for ModelSource.

Link copied to clipboard
object Companion

Static variables and methods.

Functions

Link copied to clipboard
open override fun bindTo(delegate: MapboxStyleManager)

Add the source to the Style.

Link copied to clipboard
fun maxzoom(value: Long = 18): ModelSource

Maximum zoom level at which to create batched model tiles. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels. Default value: 18.

Link copied to clipboard
fun minzoom(value: Long = 0): ModelSource

Minimum zoom level for which batched-model tiles are available Default value: 0.

Link copied to clipboard

Defines properties of 3D models in collection. Requires model source type.

Link copied to clipboard

Removes all models from the source.

Link copied to clipboard

Removes model from source.

Removes model from the source.

Link copied to clipboard

An array of one or more tile source URLs, as in the TileJSON spec. Requires batched-model source type.

Link copied to clipboard
open override fun toString(): String

Returns a human readable string that includes the cached properties of the source.

Link copied to clipboard
fun url(value: String): ModelSource

A URL to a TileJSON resource. Supported protocols are http:, https:, and mapbox://<Tileset ID>. Required if tiles is not provided.

Properties

Link copied to clipboard

Maximum zoom level at which to create batched model tiles. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels. Default value: 18.

Link copied to clipboard

Minimum zoom level for which batched-model tiles are available Default value: 0.

Link copied to clipboard

Defines properties of 3D models in collection. Requires model source type.

Link copied to clipboard

The ID of the Source.

Link copied to clipboard

An array of one or more tile source URLs, as in the TileJSON spec. Requires batched-model source type.

Link copied to clipboard
val url: String?

A URL to a TileJSON resource. Supported protocols are http:, https:, and mapbox://<Tileset ID>. Required if tiles is not provided.