main.cesium.createWorldImagery.kt Maven / Gradle / Ivy
The newest version!
// Automatically generated - do not modify!
@file:JsModule("cesium")
package cesium
/**
* Creates an [IonImageryProvider] instance for ion's default global base imagery layer, currently Bing Maps.
* ```
* // Create Cesium World Terrain with default settings
* const viewer = new Viewer('cesiumContainer', {
* imageryProvider : createWorldImagery();
* });
* ```
* ```
* // Create Cesium World Terrain with water and normals.
* const viewer = new Viewer('cesiumContainer', {
* imageryProvider : createWorldImagery({
* style: IonWorldImageryStyle.AERIAL_WITH_LABELS
* })
* });
* ```
* @see Online Documentation
*/
external fun createWorldImagery(options: CreateWorldImageryOptions? = definedExternally): IonImageryProvider
/**
* @property [style] The style of base imagery, only AERIAL, AERIAL_WITH_LABELS, and ROAD are currently supported.
* Default value - [IonWorldImageryStyle]
*/
external interface CreateWorldImageryOptions {
var style: IonWorldImageryStyle?
}