text
stringlengths
0
8.81k
Creates a Cesium3DTileset instance for the Google Photorealistic 3D Tiles tileset.
Name
Type
Default
Description
key
string
GoogleMaps.defaultApiKey
optional
Your API key to access Google Photorealistic 3D Tiles. See https://developers.google.com/maps/documentation/javascript/get-api-key for instructions on how to create your own key.
options
Cesium3DTileset.ConstructorOptions
optional
An object describing initialization options.
Returns:
Example:
Cesium.GoogleMaps.defaultApiKey = "your-api-key";
const viewer = new Cesium.Viewer("cesiumContainer");
try {
const tileset = await Cesium.createGooglePhotorealistic3DTileset();
viewer.scene.primitives.add(tileset));
} catch (error) {
console.log(`Error creating tileset: ${error}`);
}
See:
GoogleMaps
createGuid() → string
engine/Source/Core/createGuid.js 14
Creates a Globally unique identifier (GUID) string. A GUID is 128 bits long, and can guarantee uniqueness across space and time.
Returns:
Example:
this.guid = Cesium.createGuid();
See:
RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace
async createOsmBuildingsAsync(options) → Promise.<Cesium3DTileset>
engine/Source/Scene/createOsmBuildingsAsync.js 60
Creates a Cesium3DTileset instance for the
Cesium OSM Buildings