公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ui.Map.GeometryLayer
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一个 ee.Geometry 图层,用于在 ui.Map 上显示为形状。
用法 | 返回 |
---|
ui.Map.GeometryLayer(geometries, name, color, shown, locked) | ui.Map.GeometryLayer |
参数 | 类型 | 详细信息 |
---|
geometries | List<Geometry>,可选 | 用于初始化图层的几何图形。 |
name | 字符串,可选 | 图层的名称。 |
color | 字符串,可选 | 图层中形状的 CSS 颜色,例如“白色”或“#FFFFFF”。默认为“#000000”(黑色)。 |
shown | 布尔值,可选 | 是否显示图层中的形状。默认值为 true。 |
locked | 布尔值,可选 | 是否锁定图层中的形状编辑。默认值为 false。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e displays a layer of Earth Engine Geometries as shapes on a \u003ccode\u003eui.Map\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe layer can be customized with geometries, name, color, visibility (\u003ccode\u003eshown\u003c/code\u003e), and editability (\u003ccode\u003elocked\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDefault color for shapes is black ("#000000") and the layer is shown and unlocked by default.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create a GeometryLayer with \u003ccode\u003eui.Map.GeometryLayer(geometries, name, color, shown, locked)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# ui.Map.GeometryLayer\n\n\u003cbr /\u003e\n\nA layer of ee.Geometries for display as shapes on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------|----------------------|\n| `ui.Map.GeometryLayer(`*geometries* `, `*name* `, `*color* `, `*shown* `, `*locked*`)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|--------------|----------------------------|---------------------------------------------------------------------------------------------------------|\n| `geometries` | List\\\u003cGeometry\\\u003e, optional | The geometries with which to initialize the layer. |\n| `name` | String, optional | The name of the layer. |\n| `color` | String, optional | The CSS color of shapes in the layer, for instance \"white\" or \"#FFFFFF\". Defaults to \"#000000\" (black). |\n| `shown` | Boolean, optional | Whether to show the shapes in the layer. Defaults to true. |\n| `locked` | Boolean, optional | Whether to lock shape editing in the layer. Defaults to false. |"]]