ui.Map.style
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca styl mapy ActiveDictionary, który można modyfikować, aby aktualizować style mapy.
Oprócz standardowych stylów interfejsu API wymienionych w dokumentacji ui.Panel.style() interfejs ui.Map obsługuje tę opcję stylu niestandardowego:
– kursor, który może być „celownikiem” lub „dłonią” (domyślnie);
Wykorzystanie | Zwroty |
---|
Map.style() | ui.data.ActiveDictionary |
Argument | Typ | Szczegóły |
---|
to: ui.map | ui.Map | Instancja ui.Map. |
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\u003eAccess and modify the map's styles using the \u003ccode\u003estyle()\u003c/code\u003e method, which returns an ActiveDictionary containing style properties.\u003c/p\u003e\n"],["\u003cp\u003eCustomize the map's cursor appearance with the \u003ccode\u003ecursor\u003c/code\u003e style option, choosing between 'crosshair' and the default 'hand'.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the \u003ccode\u003eui.Panel.style()\u003c/code\u003e documentation for standard UI API styles applicable to the map, in addition to the custom \u003ccode\u003ecursor\u003c/code\u003e option.\u003c/p\u003e\n"]]],[],null,["# ui.Map.style\n\n\u003cbr /\u003e\n\nReturns the map's style ActiveDictionary, which can be modified to update the map's styles.\n\n\u003cbr /\u003e\n\nIn addition to the standard UI API styles listed in the ui.Panel.style() documentation, ui.Map supports the following custom style option:\n\n- cursor, which can be 'crosshair' or 'hand' (default)\n\n| Usage | Returns |\n|---------------|--------------------------|\n| Map.style`()` | ui.data.ActiveDictionary |\n\n| Argument | Type | Details |\n|----------------|--------|----------------------|\n| this: `ui.map` | ui.Map | The ui.Map instance. |"]]