ui.Map.DrawingTools.getMap
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca mapę dla tych narzędzi do rysowania lub wartość null, jeśli narzędzia do rysowania nie zostały dodane do mapy.
Wykorzystanie | Zwroty |
---|
DrawingTools.getMap() | ui.Map |
Argument | Typ | Szczegóły |
---|
to: ui.map.drawingtools | ui.Map.DrawingTools | Instancja ui.Map.DrawingTools. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]