ui.Map.DrawingTools.getMap
Returns the map for these drawing tools or null if the drawing tools have not been added to a map.
Usage | Returns |
---|
DrawingTools.getMap() | ui.Map |
Argument | Type | Details |
---|
this: ui.map.drawingtools | ui.Map.DrawingTools | The ui.Map.DrawingTools 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 `getMap()` method returns the ui.Map associated with the drawing tools."],["If the drawing tools haven't been added to a map, `getMap()` returns null."],["This method is accessed through a ui.Map.DrawingTools instance."]]],["The `DrawingTools.getMap()` method retrieves the map associated with drawing tools. It returns a `ui.Map` object if the drawing tools are linked to a map; otherwise, it returns `null`. The method requires the `ui.Map.DrawingTools` instance as input, identified as `this: ui.map.drawingtools`, to specify the drawing tools from which to get the map.\n"]]