Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ui.Map.DrawingTools
Stay organized with collections
Save and categorize content based on your preferences.
A set of tools for drawing on a map.
| Usage | Returns | ui.Map.DrawingTools(layers, shape, selected, shown, linked) | ui.Map.DrawingTools |
| Argument | Type | Details | layers | List[ui.Map.GeometryLayer], optional | An array of geometry layers with which to initialize the drawing tools. |
shape | String, optional | The shape to draw. One of the following: point, line, polygon, or rectangle. Defaults to polygon. |
selected | ui.Map.GeometryLayer, optional | The selected geometry layer. Defaults to null. |
shown | Boolean, optional | When false, hides the drawing tools or, when true, shows the shape selector and allows the list panel's visibility to be determined by the presence of geometry layers in the list. Defaults to true. |
linked | Boolean, optional | Whether the drawing tools are linked to the geometries in the imports pane. When false, the tools do not display imported geometries. Defaults to false. |
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 2026-01-08 UTC.
[null,null,["Last updated 2026-01-08 UTC."],[],["The `ui.Map.DrawingTools` function creates map drawing tools. It accepts optional parameters: `layers` to initialize with geometry layers, `shape` to set the drawing shape (point, line, polygon, rectangle, default: polygon), `selected` to specify a selected geometry layer, `shown` to control tool visibility (default: true), and `linked` to link to imported geometries (default: false). This function returns `ui.Map.DrawingTools`, allowing for map interaction through shape drawing.\n"]]