公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.getFeatureViewTilesKey
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取给定地图或资产的图块密钥。图块键可以传递给 FeatureViewTileSource 的实例,该实例可以在代码编辑器之外的基本地图上呈现。
返回调用结果。如果指定了回调,则为 null。
用法 | 返回 |
---|
ee.data.getFeatureViewTilesKey(params, callback) | FeatureViewTilesKey |
参数 | 类型 | 详细信息 |
---|
params | FeatureViewVisualizationParameters | 可视化图表参数,以(客户端)JavaScript 对象的形式呈现。对于 FeatureView 资产:
assetId (字符串)要获取图块密钥的资源 ID。 |
visParams (对象)相应图层的可视化参数。 |
|
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eObtain a tiles key for a specified map or asset to use with FeatureViewTileSource for rendering on a base map.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.data.getFeatureViewTilesKey\u003c/code\u003e function takes visualization parameters and an optional callback, returning a FeatureViewTilesKey.\u003c/p\u003e\n"],["\u003cp\u003eFeatureView assets require specifying the asset ID and visualization parameters within the parameters object.\u003c/p\u003e\n"]]],[],null,["# ee.data.getFeatureViewTilesKey\n\n\u003cbr /\u003e\n\nGet a tiles key for a given map or asset. The tiles key can be passed to an instance of FeatureViewTileSource which can be rendered on a base map outside of the Code Editor.\n\n\u003cbr /\u003e\n\nReturns the call results. Null if a callback is specified.\n\n| Usage | Returns |\n|--------------------------------------------------------|---------------------|\n| `ee.data.getFeatureViewTilesKey(params, `*callback*`)` | FeatureViewTilesKey |\n\n| Argument | Type | Details |\n|------------|------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | FeatureViewVisualizationParameters | The visualization parameters as a (client-side) JavaScript object. For FeatureView assets: |---------------------------------------------------------------------| | ` assetId ` (string) The asset ID for which to obtain a tiles key. | | ` visParams ` (Object) The visualization parameters for this layer. | |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]