createWorldImagery

suspend external fun createWorldImagery(options: CreateWorldImageryAsyncOptions? = definedExternally): IonImageryProvider(source)

Creates an IonImageryProvider instance for ion's default global base imagery layer, currently Bing Maps.

// Create a Cesium World Imagery base layer with default settings
try {
const imageryProvider = await createWorldImageryAsync();
} catch (error) {
console.log(`There was an error creating world imagery: ${error}`);
}
// Create Cesium World Imagery with different style
try {
const imageryProvider = await createWorldImageryAsync({
style: IonWorldImageryStyle.AERIAL_WITH_LABELS
});
} catch (error) {
console.log(`There was an error creating world imagery: ${error}`);
}

See also