RasterSource

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

Create the raster 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 source uri


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

Create the raster source from an URI with a specific tile size.

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

tileSize

the tile size


constructor(id: String?, tileSet: TileSet)

Create the raster source from a TileSet

Parameters

id

the source id

tileSet

constructor(id: String?, tileSet: TileSet, tileSize: Int)

Create the raster source from a TileSet with a specific tile size

Parameters

id

the source id

tileSet
tileSize

tje tile size


constructor(id: String?, url: URL)

Deprecated

use {@link #RasterSource(String, URI)} instead

Create the raster source from an URL

Parameters

id

the source id

url

the source url