ui.Map.style
Returns the map's style ActiveDictionary, which can be modified to update the map's styles.
In addition to the standard UI API styles listed in the ui.Panel.style() documentation, ui.Map supports the following custom style option:
- cursor, which can be 'crosshair' or 'hand' (default)
Usage | Returns |
---|
Map.style() | ui.data.ActiveDictionary |
Argument | Type | Details |
---|
this: ui.map | ui.Map | The ui.Map 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."],[[["Access and modify the map's styles using the `style()` method, which returns an ActiveDictionary containing style properties."],["Customize the map's cursor appearance with the `cursor` style option, choosing between 'crosshair' and the default 'hand'."],["Refer to the `ui.Panel.style()` documentation for standard UI API styles applicable to the map, in addition to the custom `cursor` option."]]],[]]