ui.Map.DrawingTools
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, 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 selecter 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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Provides a set of tools for drawing shapes (point, line, polygon, rectangle) directly on a map."],["Allows initialization with existing geometry layers and selection of a default shape."],["Offers control over visibility of the drawing tools and their linkage to imported geometries."],["Enables drawing on specific geometry layers and highlighting a selected layer."]]],[]]