ui.Map.GeometryLayer.fromGeometry
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đặt lại các hình học của lớp bằng cách phân tích cú pháp các hình học riêng lẻ từ ee.Geometry.
Trả về lớp hình học này.
Cách sử dụng | Giá trị trả về |
---|
GeometryLayer.fromGeometry(geometry) | ui.Map.GeometryLayer |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.map.geometrylayer | ui.Map.GeometryLayer | Đối tượng ui.Map.GeometryLayer. |
geometry | Hình học | Một hình học để đặt lại hình học của lớp. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]