ui.Map.clear
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह मैप को साफ़ करता है. इसके लिए, यह सभी लेयर, लिसनर, और विजेट हटाता है. साथ ही, विकल्पों को उनकी डिफ़ॉल्ट सेटिंग पर वापस लाता है.
मैप दिखाता है.
इस्तेमाल | रिटर्न |
---|
Map.clear() | ui.Map |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.map | ui.Map | ui.Map इंस्टेंस. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eMap.clear()\u003c/code\u003e removes all layers, listeners, and widgets from the map, resetting it to its default state.\u003c/p\u003e\n"],["\u003cp\u003eThis function returns the ui.Map instance, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.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| Usage | Returns |\n|---------------|---------|\n| Map.clear`()` | ui.Map |\n\n| Argument | Type | Details |\n|----------------|--------|----------------------|\n| this: `ui.map` | ui.Map | The ui.Map instance. |"]]