Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-08 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,["\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. |"]]