Map.clear
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מנקה את המפה על ידי הסרת כל השכבות, מאזינים ווידג'טים, ומשחזר את האפשרויות לברירות המחדל שלהן.
מחזירה את המפה.
שימוש | החזרות |
---|
Map.clear() | ui.Map |
אין ארגומנטים.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eClears the map of all layers, listeners, widgets, and resets options to default settings.\u003c/p\u003e\n"],["\u003cp\u003eReturns the ui.Map object after clearing.\u003c/p\u003e\n"],["\u003cp\u003eThis method does not accept any arguments.\u003c/p\u003e\n"]]],[],null,["# Map.clear\n\n\u003cbr /\u003e\n\nClears the map by removing all layers, listeners, and widgets and restoring the options to their defaults.\n\n\u003cbr /\u003e\n\nReturns the map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------|---------|\n| `Map.clear()` | ui.Map |\n\n**No arguments.**"]]