new Cesium.GoogleEarthEnterpriseMapsProvider(options)

To construct a GoogleEarthEnterpriseMapsProvider, call GoogleEarthEnterpriseImageryProvider.fromUrl. Do not call the constructor directly.
提供使用Google Earth Imagery API 的平板图像. 注释: 这个图像提供者不与公共Google地球服务器合作. 它的工作与我们 谷歌地球企业服务器. 默认情况下, Google Earth Earth 服务器不会设置 Cross-Origin Resource Sharing headers. You can either 使用添加这些信头的代理服务器,或者在 /opt/google/gehttpd/conf/ NT 0 中 ,并在“ < Directory / > ” 中添加“ 标题集” 访问控制- Allow- Origin “ * ” 选项 '< Directory"/opt/google/gehttpd/htdocs">"指令. 此供应商作为Google Earth Earth Entertainment公司的一部分,与2D Maps API 使用. 对于3D地球 NT 1 使用它 is necessary to use GoogleEarthEnterpriseImageryProvider
Name Type Description
options GoogleEarthEnterpriseMapsProvider.ConstructorOptions 描述初始化选项的对象
Throws:
  • RuntimeError : Could not find layer with channel (id) of options.channel.
  • RuntimeError : Could not find a version in channel (id) options.channel.
  • RuntimeError : Unsupported projection data.projection.
Example:
const google = await Cesium.GoogleEarthEnterpriseMapsProvider.fromUrl("https://earth.localdomain", 1008);
See:

Members

static Cesium.GoogleEarthEnterpriseMapsProvider.logoUrl : string

获取或设置 URL 到Google Earth 标志在信用中显示.

readonly channel : number

获取当前正在使用的图像通道( id) .

readonly credit : Credit

当图像提供者活动时, 获得信用值以显示 。 通常,这是用来信用的 图像的来源.

readonly errorEvent : Event

获得一个在图像提供者遇到同步错误时上升的事件 。 通过签名 对事件,您将被通知错误,并有可能从中恢复。 活动听众 are passed an instance of TileProviderError.

readonly hasAlphaChannel : boolean

获得一个表示图像提供者是否提供的图像的值 包括一个α通道。 如果这个属性是虚假的, 一个 alpha 通道, 如果存在, 将会 将被忽略。 如果此属性属实, 任何没有 alpha 通道的图像都会被处理 好像他们的α是1.0 到处都是。 当此属性为虚假时, 内存使用 并缩短纹理上传时间.

readonly maximumLevel : number|undefined

获取可以请求的最多详细级别.

readonly minimumLevel : number

获取可以请求的最小详细级别.

readonly path : string

在Google地球服务器上获取数据url路径.

readonly proxy : Proxy

获取此提供者使用的代理 .

readonly rectangle : Rectangle

用弧度表示这个例子提供的图像的矩形.

readonly requestType : string

获得请求提供者提供的数据类型.

readonly tileDiscardPolicy : TileDiscardPolicy

获取瓷砖丢弃策略 。 如果未定义, 丢弃策略负责 用于通过它应当的DiscardImage函数过滤出“缺少”牌。 如果此函数 返回未定义,不过滤牌.

readonly tileHeight : number

获得每个瓦片的高度,以像素为单位.

readonly tileWidth : number

获得每个瓦片的宽度,以像素为单位.

readonly tilingScheme : TilingScheme

获得此提供者使用的平板方案 .

readonly url : string

获得Google地球地图服务器的 NT 0 .

readonly version : number

获取此提供者所使用的数据版本 .

Methods

static Cesium.GoogleEarthEnterpriseMapsProvider.fromUrl(url, options)Promise.<GoogleEarthEnterpriseMapsProvider>

使用 Google Earth 映像 NT 0 创建平面图像提供者 .
Name Type Description
url Resource | string Google地球服务器的url托管图像.
options GoogleEarthEnterpriseMapsProvider.ConstructorOptions optional 描述初始化选项的对象
Returns:
创建的Google EarthEarth EnterpriseMaps Provider. 星洲网.
Throws:
  • RuntimeError : Could not find layer with channel (id) of options.channel.
  • RuntimeError : Could not find a version in channel (id) options.channel.
  • RuntimeError : Unsupported projection data.projection.
Example:
const google = await Cesium.GoogleEarthEnterpriseMapsProvider.fromUrl("https://earth.localdomain", 1008);

getTileCredits(x, y, level)Array.<Credit>

获得在显示特定瓦片时显示的信用值.
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级;
Returns:
显示瓷砖时要显示的信用值 .

pickFeatures(x, y, level, longitude, latitude)undefined

Picking 特性目前不被此图像提供者支持, 因此此函数仅返回 undefined.
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级.
longitude number 选择特征的经度 .
latitude number 选择特征的纬度.
Returns:
不支持选择后未定义 .

requestImage(x, y, level, request)Promise.<ImageryTypes>|undefined

请求给定的瓦片的图像 .
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级.
request Request optional 请求对象 。 仅供内部使用.
Returns:
承诺在图像可用时解决图像,或 如果服务器的主动请求过多, 未定义, 请求应在稍后重审 .

Type Definitions

Cesium.GoogleEarthEnterpriseMapsProvider.ConstructorOptions

Google Earth Enterprise Maps 创建器的初始化选项
Properties:
Name Type Attributes Default Description
channel number 在请求服务器数据时要使用的通道( id) . 频道号码可以通过查看位于: earth.localdomain/default_map/query?request=Json&vars=geeServerDefs The /default_map path may 视您的 Google Earth Earth Enterprise 服务器配置而有所不同 。 找那个"身份" 与“ ImageryMaps” 请求相关。 可能有不止一个ID可用. Example: { layers: [ { id: 1002, requestType: "ImageryMaps" }, { id: 1007, requestType: "VectorMapsRaster" } ] }
path string <optional>
"/默认 地图" Google地球服务器托管图像的路径.
maximumLevel number <optional>
由 Google Earth 支持的最高详细级别 企业服务器,如果没有限制,则未定义 .
tileDiscardPolicy TileDiscardPolicy <optional>
确定是否为瓦片的策略 无效,应当丢弃。 确保不丢弃、构造和通过瓷砖 a NeverTileDiscardPolicy for this parameter.
ellipsoid Ellipsoid <optional>
Ellipsoid.default The ellipsoid. If not specified, the default ellipsoid is used.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.