お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ui.Map.DrawingTools.setShape
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
描画モードのシェイプを設定し、描画モードを開始します。使用できる描画モードのシェイプは、ポイント、ライン、ポリゴン、長方形です。
この描画ツールのセットを返します。
用途 | 戻り値 |
---|
DrawingTools.setShape(shape) | ui.Map.DrawingTools |
引数 | タイプ | 詳細 |
---|
これ: ui.map.drawingtools | ui.Map.DrawingTools | ui.Map.DrawingTools インスタンス。 |
shape | 文字列 | 描画する図形。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-29 UTC。
[null,null,["最終更新日 2025-07-29 UTC。"],[[["\u003cp\u003eEnables users to initiate drawing mode on a map with selectable shapes like points, lines, polygons, and rectangles.\u003c/p\u003e\n"],["\u003cp\u003eProvides a method (\u003ccode\u003esetShape\u003c/code\u003e) to specify the desired shape for drawing, accepting a string argument representing the shape type.\u003c/p\u003e\n"],["\u003cp\u003eReturns the DrawingTools instance, allowing for method chaining and further customization.\u003c/p\u003e\n"]]],["The `DrawingTools.setShape(shape)` method configures the drawing tool's shape (point, line, polygon, or rectangle) and activates draw mode. It accepts a string argument specifying the desired shape and returns the `ui.Map.DrawingTools` instance, allowing for method chaining. This method is used to select the shape to draw and initiate the drawing process.\n"],null,["# ui.Map.DrawingTools.setShape\n\n\u003cbr /\u003e\n\nSets the draw mode shape and starts draw mode. The available draw mode shapes are: point, line, polygon, and rectangle.\n\n\u003cbr /\u003e\n\nReturns this set of drawing tools.\n\n| Usage | Returns |\n|--------------------------------|---------------------|\n| DrawingTools.setShape`(shape)` | ui.Map.DrawingTools |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `shape` | String | The shape to draw. |"]]