text
stringlengths
0
8.81k
Returns:
A promise that resolved to an object containing the KML string and a dictionary of external file blobs, or a kmz file as a blob if options.kmz is true.
Example:
Cesium.exportKml({
entities: entityCollection
})
.then(function(result) {
// The XML string is in result.kml
const externalFiles = result.externalFiles
for(const file in externalFiles) {
// file is the name of the file used in the KML document as the href
// externalFiles[file] is a blob with the contents of the file
}
});
Demo:
Cesium Sandcastle KML Export Demo
formatError(object) → string
engine/Source/Core/formatError.js 12
Formats an error object into a String. If available, uses name, message, and stack
properties, otherwise, falls back on toString().
Name
Type
Description
object
*
The item to find in the array.
Returns:
A string containing the formatted error.
getAbsoluteUri(relative, base) → string
engine/Source/Core/getAbsoluteUri.js 18
Given a relative Uri and a base Uri, returns the absolute Uri of the relative Uri.
Name
Type
Description
relative
string
The relative Uri.
base