Appearance
KBE3D / KBCore / Cesium / GoogleEarthEnterpriseMetadata
类: GoogleEarthEnterpriseMetadata
<div class="notice"> To construct GoogleEarthEnterpriseMetadata, call GoogleEarthEnterpriseMetadata.fromUrl. Do not call the constructor directly. </div>
Provides metadata using the Google Earth Enterprise REST API. This is used by the GoogleEarthEnterpriseImageryProvider and GoogleEarthEnterpriseTerrainProvider to share metadata requests.
属性
imageryPresent
imageryPresent:
boolean
True if imagery is available.
protoImagery
protoImagery:
boolean|undefined
True if imagery is sent as a protocol buffer, false if sent as plain images. If undefined we will try both.
terrainPresent
terrainPresent:
boolean
True if terrain is available.
negativeAltitudeExponentBias
negativeAltitudeExponentBias:
number
Exponent used to compute constant to calculate negative height values.
negativeAltitudeThreshold
negativeAltitudeThreshold:
number
Threshold where any numbers smaller are actually negative values. They are multiplied by -2^negativeAltitudeExponentBias.
providers
providers:
any
Dictionary of provider id to copyright strings.
key
key:
ArrayBuffer
Key used to decode packets
url
readonlyurl:string
Gets the name of the Google Earth Enterprise server.
proxy
readonlyproxy:Proxy
Gets the proxy used for metadata requests.
resource
readonlyresource:Resource
Gets the resource used for metadata requests.
方法
fromUrl()
staticfromUrl(resourceOrUrl:string|Resource):Promise<GoogleEarthEnterpriseMetadata>
Creates a metadata object using the Google Earth Enterprise REST API. This is used by the GoogleEarthEnterpriseImageryProvider and GoogleEarthEnterpriseTerrainProvider to share metadata requests.
参数
resourceOrUrl
The url of the Google Earth Enterprise server hosting the imagery.
string | Resource
返回
Promise<GoogleEarthEnterpriseMetadata>
A promise which resolves to the created GoogleEarthEnterpriseMetadata instance/
tileXYToQuadKey()
statictileXYToQuadKey(x:number,y:number,level:number):void
Converts a tiles (x, y, level) position into a quadkey used to request an image from a Google Earth Enterprise server.
参数
x
number
The tile's x coordinate.
y
number
The tile's y coordinate.
level
number
The tile's zoom level.
返回
void
quadKeyToTileXY()
staticquadKeyToTileXY(quadkey:string):void
Converts a tile's quadkey used to request an image from a Google Earth Enterprise server into the (x, y, level) position.
参数
quadkey
string
The tile's quad key
返回
void
构造函数
构造函数
new GoogleEarthEnterpriseMetadata():
GoogleEarthEnterpriseMetadata
返回
GoogleEarthEnterpriseMetadata
