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."],[],["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,[]]