ui.Map.unlisten
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลบการโทรกลับ
การใช้งาน | การคืนสินค้า |
---|
Map.unlisten(idOrType) | |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.map | ui.Map | อินสแตนซ์ ui.Map |
idOrType | สตริง ไม่บังคับ | รหัสที่ listen() แสดงผลเมื่อมีการลงทะเบียน Callback, ประเภทเหตุการณ์ หรือไม่มีอะไรเลย หากมีการส่งรหัส ระบบจะลบคอลแบ็กที่เกี่ยวข้อง หากส่งประเภทเหตุการณ์ ระบบจะลบการเรียกกลับทั้งหมดที่ลงทะเบียนด้วยประเภทเหตุการณ์นั้น หากไม่มีการส่งอะไร ระบบจะลบการเรียกกลับทั้งหมด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eDeletes registered map callbacks, allowing for the removal of specific or all event listeners.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMap.unlisten()\u003c/code\u003e can target individual callbacks using their unique ID, all callbacks of a specific event type, or all map callbacks at once.\u003c/p\u003e\n"],["\u003cp\u003eProvides flexibility in managing event listeners and controlling the behavior of the map based on user interactions or other events.\u003c/p\u003e\n"]]],[],null,["# ui.Map.unlisten\n\n\u003cbr /\u003e\n\nDeletes callbacks.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|---------|\n| Map.unlisten`(`*idOrType*`)` | |\n\n| Argument | Type | Details |\n|----------------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.map` | ui.Map | The ui.Map instance. |\n| `idOrType` | String, optional | Either an ID returned by listen() when a callback was registered, an event type, or nothing. If an ID is passed, the corresponding callback is deleted. If an event type is passed, all callbacks registered with that event type are deleted. If nothing is passed, all callbacks are deleted. |"]]