new GoogleEarthEnterpriseTerrainProvider()
Used to provide block terrain data classes through the Google Earth Enterprise REST API. Support loading elevation data and rendering 3D terrain.
| Name | Type | Description |
|---|---|---|
options.url |
String |
The URL of the Google Earth Enterprise server hosting the images. |
options.metadata |
GoogleEarthEnterpriseMetadata |
Metadata object, which can be used to share metadata requests with GoogleEarthEnterprise ImageryProvider. |
options.proxy |
Proxy |
optional
Proxy used for requests. If necessary, the object should have a getURL function to return the proxy URL. |
options.ellipsoid |
Ellipsoid |
optional
Ellipsoid body. If not specified, use WGS84 ellipsoid. |
options.credit |
Credit | String |
optional
The copyright statement of the data source is displayed on the map canvas. |
Example
var geeMetadata = new GoogleEarthEnterpriseMetadata('http://www.earthenterprise.org/3d');
var gee = new SuperMap3D.GoogleEarthEnterpriseTerrainProvider({
metadata : geeMetadata
});
Members
-
availabilityTileAvailability
-
Get an object that can be used to determine the availability of terrain provided by the provider, such as points and rectangles. This function should not be called before GoogleEarthEnterpriseTerrainProvider # ready returns true. If the availability information is unavailable.
-
readonly creditCredit
-
The copyright statement that needs to be displayed when activating the terrain provider is usually used to indicate the source of the terrain data. This function should not be called before GoogleEarthEnterpriseTerrainProvider # ready returns true.
-
readonly errorEventEvent
-
The event triggered when the image provider encounters an asynchronous error. By subscribing to this event, you will receive error notifications and may potentially recover from them. The event listener will receive an instance of TileProviderError.
-
hasVertexNormalsBoolean
-
Obtain a value indicating whether the requested tile contains vertex normals. This function should not be called before GoogleEarthEnterpriseTerrainProvider # ready returns true.
-
hasWaterMaskBoolean
-
Obtain whether the provider includes water surface mask data. The water surface mask represents which areas on Earth are water instead of land, so it can be rendered as a reflective surface with animated waves. This function should not be called before Google Earth Enterprise Terrain Provider # ready returns true.
-
readonly proxyProxy
-
Get the proxy used by the provider.
-
readonly readyBoolean
-
Get a value indicating whether the provider can use it.
-
readonly readyPromisePromise.<Boolean>
-
Get the Promise that parses to true when the provider is ready.
-
readonly tilingSchemeTilingScheme
-
Obtain the slicing scheme used by this provider. This function should not be called before GoogleEarthEnterpriseTerrainProvider # ready returns true.
-
readonly urlString
-
Obtain the name of the Google Earth Enterprise server URL for hosting images.
Methods
-
getLevelMaximumGeometricError(level){Number}
-
Obtain the maximum geometric error allowed for tiles at a given level.
Name Type Description levelNumber Obtain the tile level with the maximum geometric error.
Returns:
Type Description Number The maximum value of geometric error. -
getTileDataAvailable(x, y, level){Boolean}
-
Determine if data for tiles can be loaded.
Name Type Description xNumber To apply for the X coordinate of the tile of the geometry.
yNumber To apply for the X coordinate of the tile of the geometry.
levelNumber Request the tile level of the geometry.
Returns:
Type Description Boolean If not supported, undefined; otherwise, true or false. -
requestTileGeometry(x, y, level, request){Promise.<TerrainData>|undefined}
-
Request to specify the geometry of the tile. This function should not be called before GoogleEarthEnterpriseTerrainProvider # ready returns true. The results must include terrain data and optional indications including water surface masks and available sub plots.
Name Type Description xNumber Request the X coordinate of the tile of the geometry.
yNumber Request the y-coordinate of the tile of the geometry.
levelNumber Request the tile level of the geometry.
requestRequest optional Request object. For internal use only.
Throws:
-
This function cannot be called before GoogleEarthEnterpriseTerrainProvider # ready returns true. This function cannot be called before returning true.
- Type
- DeveloperError
Returns:
Type Description Promise.<TerrainData> | undefined Promise of the requested geometry. If this method returns undefined instead of Promise, it indicates that there are too many requests waiting to be processed and the requests will be retried later. -