Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.drawingTools
Stay organized with collections
Save and categorize content based on your preferences.
Returns 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.
Usage | Returns | Map.drawingTools() | ui.Map.DrawingTools |
Argument | Type | Details | this: ui.map | ui.Map | The ui.Map instance. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["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. |"]]