fromUrl

suspend fun fromUrl(    url: Resource,     options: TileMapServiceImageryProvider.ConstructorOptions? = definedExternally): TileMapServiceImageryProvider(source)

Creates a TileMapServiceImageryProvider from the specified url.

const tms = await TileMapServiceImageryProvider.fromUrl(
   '../images/cesium_maptiler/Cesium_Logo_Color', {
     fileExtension: 'png',
     maximumLevel: 4,
     rectangle: new Rectangle(
       Math.toRadians(-120.0),
       Math.toRadians(20.0),
       Math.toRadians(-60.0),
       Math.toRadians(40.0))
});

Return

A promise that resolves to the created TileMapServiceImageryProvider.

Parameters

url

Path to image tiles on server.

options

Object describing initialization options.

See also


suspend fun fromUrl(    url: String,     options: TileMapServiceImageryProvider.ConstructorOptions? = definedExternally): TileMapServiceImageryProvider(source)