ui.Map.GeometryLayer.fromGeometry
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รีเซ็ตเรขาคณิตของเลเยอร์โดยการแยกวิเคราะห์เรขาคณิตแต่ละรายการจาก ee.Geometry
แสดงผลเลเยอร์เรขาคณิตนี้
การใช้งาน | การคืนสินค้า |
---|
GeometryLayer.fromGeometry(geometry) | ui.Map.GeometryLayer |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.map.geometrylayer | ui.Map.GeometryLayer | อินสแตนซ์ ui.Map.GeometryLayer |
geometry | เรขาคณิต | รูปทรงที่จะใช้รีเซ็ตรูปทรงของเลเยอร์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eResets a GeometryLayer's geometries using an \u003ccode\u003eee.Geometry\u003c/code\u003e input, effectively redrawing the layer based on the provided geometry.\u003c/p\u003e\n"],["\u003cp\u003eReturns the modified \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e instance, allowing for method chaining or further layer manipulations.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an \u003ccode\u003eee.Geometry\u003c/code\u003e as an argument, which provides the spatial data for the layer's new geometries.\u003c/p\u003e\n"]]],[],null,["# ui.Map.GeometryLayer.fromGeometry\n\n\u003cbr /\u003e\n\nResets the layer's geometries by parsing individual geometries from an ee.Geometry.\n\n\u003cbr /\u003e\n\nReturns this geometry layer.\n\n| Usage | Returns |\n|----------------------------------------|----------------------|\n| GeometryLayer.fromGeometry`(geometry)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|--------------------------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `geometry` | Geometry | A geometry with which to reset the layer's geometries. |"]]