ui.Map.DrawingTools.setDrawModes
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ड्रॉइंग टूल पर, ड्रॉ मोड में उपलब्ध आकार सेट करता है. ड्रॉ मोड में ये आकार उपलब्ध हैं: पॉइंट, लाइन, पॉलीगॉन, और रेक्टैंगल.
इस्तेमाल | रिटर्न |
---|
DrawingTools.setDrawModes(drawModes) | |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.map.drawingtools | ui.Map.DrawingTools | ui.Map.DrawingTools इंस्टेंस. |
drawModes | List<String>, ज़रूरी नहीं | चालू करने के लिए ड्रॉइंग मोड की सूची. डिफ़ॉल्ट रूप से, यह उन सभी भाषाओं पर लागू होता है जिन पर यह सुविधा काम करती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eSets available drawing shapes (point, line, polygon, rectangle) for the drawing tool.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDrawingTools.setDrawModes()\u003c/code\u003e method allows customization of available drawing modes on a map.\u003c/p\u003e\n"],["\u003cp\u003eBy default, all supported drawing shapes are enabled, but this can be modified using the \u003ccode\u003edrawModes\u003c/code\u003e argument.\u003c/p\u003e\n"]]],["The `DrawingTools.setDrawModes` function configures the drawing tool's available shapes. It accepts an optional list of `drawModes` to enable, which defaults to all supported shapes (point, line, polygon, and rectangle). This function modifies the `ui.Map.DrawingTools` instance, setting the shapes that can be used. It does not return any value.\n"],null,["# ui.Map.DrawingTools.setDrawModes\n\n\u003cbr /\u003e\n\nSets the available draw mode shapes on the drawing tool. The available draw mode shapes are: point, line, polygon, and rectangle.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------|---------|\n| DrawingTools.setDrawModes`(`*drawModes*`)` | |\n\n| Argument | Type | Details |\n|-----------------------------|--------------------------|-------------------------------------------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `drawModes` | List\\\u003cString\\\u003e, optional | The list of draw modes to enable. Defaults to all supported ones. |"]]