ModelSourceState

A collection of 3D models

See also

Parameters

sourceId

The id of the source state, by default a random generated ID will be used.

initialProperties

The initial mutable properties of the source.

Constructors

Link copied to clipboard
fun ModelSourceState(sourceId: String = generateRandomSourceId("model"))

Types

Link copied to clipboard
object Companion

Public companion object.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

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
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

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