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 2023-10-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003edrawingTools()\u003c/code\u003e function provides access to tools for creating and editing shapes on a map.\u003c/p\u003e\n"],["\u003cp\u003eIf no drawing tools exist on the map, calling this function will add them.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a \u003ccode\u003eui.Map.DrawingTools\u003c/code\u003e object, which is used to interact with the drawing tools.\u003c/p\u003e\n"],["\u003cp\u003eThis function is accessed via the \u003ccode\u003eui.Map\u003c/code\u003e instance using dot notation (\u003ccode\u003eMap.drawingTools()\u003c/code\u003e).\u003c/p\u003e\n"]]],["The core content describes the `Map.drawingTools()` method, which retrieves the map's drawing tools for creating and editing shapes. If no tools exist, they are added to the map. This method, applied to a `ui.Map` instance, returns a `ui.Map.DrawingTools` object. The `ui.Map` instance itself is the sole argument required by the function.\n"],null,["# ui.Map.drawingTools\n\n\u003cbr /\u003e\n\nReturns the map's drawing tools, which can be used to create and edit shapes on the map. Adds the drawing tools to the map if none exist.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------|---------------------|\n| Map.drawingTools`()` | ui.Map.DrawingTools |\n\n| Argument | Type | Details |\n|----------------|--------|----------------------|\n| this: `ui.map` | ui.Map | The ui.Map instance. |"]]