ui.Map.DrawingTools.getDrawModes
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ड्रॉइंग टूल पर उपलब्ध ड्रॉ मोड दिखाता है. ड्रॉ मोड में ये आकार उपलब्ध हैं: पॉइंट, लाइन, पॉलीगॉन, और रेक्टैंगल.
चालू किए गए ड्रॉ मोड की सूची दिखाता है.
इस्तेमाल | रिटर्न |
---|
DrawingTools.getDrawModes() | List<String> |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.map.drawingtools | ui.Map.DrawingTools | ui.Map.DrawingTools इंस्टेंस. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eDrawingTools.getDrawModes() returns a list of enabled draw modes on the drawing tool, which can be point, line, polygon, and rectangle.\u003c/p\u003e\n"],["\u003cp\u003eThis function accepts the ui.Map.DrawingTools instance and returns a list of available draw modes.\u003c/p\u003e\n"]]],[],null,["# ui.Map.DrawingTools.getDrawModes\n\n\u003cbr /\u003e\n\nGets the available draw modes on the drawing tool. The available draw mode shapes are: point, line, polygon, and rectangle.\n\n\u003cbr /\u003e\n\nReturns the list of enabled draw modes.\n\n| Usage | Returns |\n|-------------------------------|----------------|\n| DrawingTools.getDrawModes`()` | List\\\u003cString\\\u003e |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |"]]