VectorSource

constructor(id: String?, uri: Uri)

Create a vector source from an URI.

An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:

  • http://

  • load resources using HyperText Transfer Protocol

  • file://

  • load resources from the Android file system

  • asset://

  • load resources from the binary packaged assets folder

Parameters

id

the source id

uri

the TileJSON resource uri


constructor(id: String?, uri: String?)

Create a vector source from an URI.

An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:

  • http://

  • load resources using HyperText Transfer Protocol

  • file://

  • load resources from the Android file system

  • asset://

  • load resources from the binary packaged assets folder

Parameters

id

the source id

uri

the uri


constructor(id: String?, tileSet: TileSet)

Create a vector source from a tileset

Parameters

id

the source id

tileSet

the tileset


constructor(id: String?, url: URL)

Deprecated

use {@link #VectorSource(String, Uri)} instead

Create a vector source from a remote url pointing to a TileJSON resource

Parameters

id

the source id

url

the TileJSON resource url