main.cesium.GoogleEarthEnterpriseMetadata.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package cesium
/**
* Provides metadata using the Google Earth Enterprise REST API. This is used by the GoogleEarthEnterpriseImageryProvider
* and GoogleEarthEnterpriseTerrainProvider to share metadata requests.
* @see Online Documentation
*
* @constructor
* @param [resourceOrUrl] The url of the Google Earth Enterprise server hosting the imagery
* @see Online Documentation
*/
@JsName("\$cesium__GoogleEarthEnterpriseMetadata")
external class GoogleEarthEnterpriseMetadata(resourceOrUrl: Resource) {
constructor(resourceOrUrl: String)
/**
* True if imagery is available.
* @see Online Documentation
*/
var imageryPresent: Boolean
/**
* True if imagery is sent as a protocol buffer, false if sent as plain images. If undefined we will try both.
* @see Online Documentation
*/
var protoImagery: Boolean
/**
* True if terrain is available.
* @see Online Documentation
*/
var terrainPresent: Boolean
/**
* Exponent used to compute constant to calculate negative height values.
* @see Online Documentation
*/
var negativeAltitudeExponentBias: Int
/**
* Threshold where any numbers smaller are actually negative values. They are multiplied by -2^negativeAltitudeExponentBias.
* @see Online Documentation
*/
var negativeAltitudeThreshold: Double
/**
* Dictionary of provider id to copyright strings.
* @see Online Documentation
*/
var providers: Any
/**
* Key used to decode packets
* @see Online Documentation
*/
var key: org.khronos.webgl.ArrayBuffer
/**
* Gets the name of the Google Earth Enterprise server.
* @see Online Documentation
*/
val url: String
/**
* Gets the proxy used for metadata requests.
* @see Online Documentation
*/
val proxy: Proxy
/**
* Gets the resource used for metadata requests.
* @see Online Documentation
*/
val resource: Resource
/**
* Gets a promise that resolves to true when the metadata is ready for use.
* @see Online Documentation
*/
val readyPromise: kotlin.js.Promise
companion object {
/**
* Converts a tiles (x, y, level) position into a quadkey used to request an image
* from a Google Earth Enterprise server.
* @param [x] The tile's x coordinate.
* @param [y] The tile's y coordinate.
* @param [level] The tile's zoom level.
* @see Online Documentation
*/
fun tileXYToQuadKey(
x: Double,
y: Double,
level: Int,
)
/**
* Converts a tile's quadkey used to request an image from a Google Earth Enterprise server into the
* (x, y, level) position.
* @param [quadkey] The tile's quad key
* @see Online Documentation
*/
fun quadKeyToTileXY(quadkey: String)
}
}