Maps SDK for Web

tt.VectorSource

A source containing vector tiles data. To see a full list of supported properties, please refer to Map Style Specification.

Methods

setTiles(tiles): tt.VectorSource

Sets the source tiles property and re-renders the map.

Parameters
Name Description
tiles
Array
default:None
An array of one or more tile source URLs.
Returns

this

setUrl(url): tt.VectorSource

Sets the source url property and re-renders the map.

Parameters
Name Description
url
String
default:None
A URL to a tile resource. Supported protocols are http:, https:.
Returns

this