ui.Map.drawingTools
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 `drawingTools()` function provides access to tools for creating and editing shapes on a map."],["If no drawing tools exist on the map, calling this function will add them."],["It returns a `ui.Map.DrawingTools` object, which is used to interact with the drawing tools."],["This function is accessed via the `ui.Map` instance using dot notation (`Map.drawingTools()`)."]]],[]]