text
stringlengths
0
8.81k
Name
Type
Default
Description
style
IonWorldImageryStyle
IonWorldImageryStyle
optional
The style of base imagery, only AERIAL, AERIAL_WITH_LABELS, and ROAD are currently supported.
Returns:
Examples:
// Create a Cesium World Imagery base layer with default settings
try {
const imageryProvider = await Cesium.createWorldImageryAsync();
} catch (error) {
console.log(`There was an error creating world imagery: ${error}`);
}
// Create Cesium World Imagery with different style
try {
const imageryProvider = await Cesium.createWorldImageryAsync({
style: Cesium.IonWorldImageryStyle.AERIAL_WITH_LABELS
});
} catch (error) {
console.log(`There was an error creating world imagery: ${error}`);
}
See:
Ion
createWorldTerrainAsync(options) → Promise.<CesiumTerrainProvider>
engine/Source/Core/createWorldTerrainAsync.js 40
Creates a CesiumTerrainProvider instance for the Cesium World Terrain.
Name
Type
Description
options
Object
optional
Object with the following properties:
Name
Type
Default
Description