MTVectorTileSource

A vector tile source.

Constructors

constructor(identifier: String, attribution: String?, bounds: DoubleArray, maxZoom: Double, minZoom: Double, tiles: Array<URL>?, url: URL?, type: MTSourceType, scheme: MTTileScheme)
constructor(identifier: String, url: URL)

Properties

open override var attribution: String?

Attribution to be displayed when the map is shown to a user.

open override var bounds: DoubleArray

An array containing the longitude and latitude of the southwest and northeast corners of the source’s bounding box in the following order: sw.lng, sw.lat, ne.lng, ne.lat.

open override var identifier: String

Unique identifier of a source.

open override var maxZoom: Double

Maximum zoom level for which tiles are available.

open override var minZoom: Double

Minimum zoom level for which tiles are available.

Scheme used for tiles. Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) is assumed.

open override var tiles: Array<URL>?

An array of one or more tile source URLs.

open override var type: MTSourceType

Type of the layer.

open override var url: URL?

A URL to a TileJSON resource. Supported protocols are http, https.

Functions

fun setTiles(tiles: Array<URL>, mapViewController: MTMapViewController)

Sets the tiles of the source.

fun setURL(url: URL, mapViewController: MTMapViewController)

Sets the url of the source.