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.getMap
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eThe \u003ccode\u003egetMap()\u003c/code\u003e method returns the ui.Map associated with the drawing tools.\u003c/p\u003e\n"],["\u003cp\u003eIf the drawing tools haven't been added to a map, \u003ccode\u003egetMap()\u003c/code\u003e returns null.\u003c/p\u003e\n"],["\u003cp\u003eThis method is accessed through a ui.Map.DrawingTools instance.\u003c/p\u003e\n"]]],["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"],null,["# ui.Map.DrawingTools.getMap\n\n\u003cbr /\u003e\n\nReturns the map for these drawing tools or null if the drawing tools have not been added to a map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| DrawingTools.getMap`()` | ui.Map |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |"]]