ui.Map.DrawingTools.setLinked
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 xem các hình học của công cụ vẽ có được liên kết với bảng nhập hay được tách biệt với bản đồ.
Trả về ui.Map.DrawingTools này.
Cách sử dụng | Giá trị trả về |
---|
DrawingTools.setLinked(linked) | ui.Map.DrawingTools |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.map.drawingtools | ui.Map.DrawingTools | Thực thể ui.Map.DrawingTools. |
linked | Boolean | Liệu các hình học có nên được liên kết với bảng nhập hay không. Khi giá trị là false, tất cả hình học đều là cục bộ đối với thực thể bản đồ. |
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\u003eDrawing tools' geometries can be linked to the imports panel or isolated to the map.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDrawingTools.setLinked(linked)\u003c/code\u003e lets you control this linkage, with \u003ccode\u003elinked\u003c/code\u003e set to true for imports panel connection and false for map isolation.\u003c/p\u003e\n"],["\u003cp\u003eWhen geometries are linked to the imports panel, they are accessible and manageable from there, while isolation keeps them local to the map instance.\u003c/p\u003e\n"]]],[],null,["# ui.Map.DrawingTools.setLinked\n\n\u003cbr /\u003e\n\nSets whether the drawing tools' geometries are linked to the imports panel or isolated to the map.\n\n\u003cbr /\u003e\n\nReturns these ui.Map.DrawingTools.\n\n| Usage | Returns |\n|----------------------------------|---------------------|\n| DrawingTools.setLinked`(linked)` | ui.Map.DrawingTools |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `linked` | Boolean | Whether the geometries should be linked to the imports panel. When false, all geometries are local to the map instance. |"]]