お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ui.Map.GeometryLayer.setShown
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
レイヤ内のシェイプの可視性を設定します。
この地図レイヤを返します。
用途 | 戻り値 |
---|
GeometryLayer.setShown(shown) | ui.Map.GeometryLayer |
引数 | タイプ | 詳細 |
---|
これ: ui.map.geometrylayer | ui.Map.GeometryLayer | ui.Map.GeometryLayer インスタンス。 |
shown | ブール値 | レイヤが表示されるかどうか。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003esetShown()\u003c/code\u003e method controls the visibility of shapes within a GeometryLayer on the map.\u003c/p\u003e\n"],["\u003cp\u003eIt takes a boolean argument, \u003ccode\u003eshown\u003c/code\u003e, to determine if the layer should be visible or hidden.\u003c/p\u003e\n"],["\u003cp\u003eCalling this method returns the \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `GeometryLayer.setShown(shown)` method controls the visibility of shapes within a map layer. It takes a boolean argument, `shown`, which determines if the layer is visible (true) or hidden (false). This method, when called on a `ui.Map.GeometryLayer` instance, returns the same `ui.Map.GeometryLayer` instance, allowing for method chaining.\n"],null,["# ui.Map.GeometryLayer.setShown\n\n\u003cbr /\u003e\n\nSets the visibility of shapes in the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|---------------------------------|----------------------|\n| GeometryLayer.setShown`(shown)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `shown` | Boolean | Whether the layer is shown. |"]]