公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ui.Map.Layer.setVisParams
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设置图层的可视化参数。
返回此地图图层。
用法 | 返回 |
---|
Layer.setVisParams(visParams) | ui.Map.Layer |
参数 | 类型 | 详细信息 |
---|
此:ui.map.layer | ui.Map.Layer | ui.Map.Layer 实例。 |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters,可选 | 可视化图表参数。请参阅 ee.data.getMapId() 文档。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDefines how the layer is displayed on the map, controlling its visual appearance.\u003c/p\u003e\n"],["\u003cp\u003eAccepts visualization parameters that dictate the layer's styling and presentation, similar to those used in \u003ccode\u003eee.data.getMapId()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eModifies the existing layer directly and returns the updated \u003ccode\u003eui.Map.Layer\u003c/code\u003e object for chaining operations.\u003c/p\u003e\n"]]],["The `setVisParams` method configures a map layer's visualization. It accepts `visParams` which can be either `FeatureVisualizationParameters` or `ImageVisualizationParameters` as defined in `ee.data.getMapId()`. The method modifies the `ui.Map.Layer` instance, which is the target of this operation, and returns the same `ui.Map.Layer` instance. This function is used to update how the layer is displayed.\n"],null,["# ui.Map.Layer.setVisParams\n\n\u003cbr /\u003e\n\nSets the layer's visualization parameters.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|-------------------------------------|--------------|\n| Layer.setVisParams`(`*visParams*`)` | ui.Map.Layer |\n\n| Argument | Type | Details |\n|----------------------|------------------------------------------------------------------------|------------------------------------------------------------|\n| this: `ui.map.layer` | ui.Map.Layer | The ui.Map.Layer instance. |\n| `visParams` | FeatureVisualizationParameters\\|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |"]]