ui.Map.DrawingTools.getMap
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Gibt die Karte für diese Zeichenwerkzeuge zurück oder „null“, wenn die Zeichenwerkzeuge nicht einer Karte hinzugefügt wurden.
Nutzung | Ausgabe |
---|
DrawingTools.getMap() | ui.Map |
Argument | Typ | Details |
---|
So gehts: ui.map.drawingtools | ui.Map.DrawingTools | Die ui.Map.DrawingTools-Instanz. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (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. |"]]