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, the Map supports the following custom style option:
- cursor, which can be 'crosshair' or 'hand' (default)
Usage | Returns |
---|
Map.style() | ui.data.ActiveDictionary |
No arguments.
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."],[[["The `Map.style()` function grants access to the Map's style dictionary, enabling style modifications."],["Custom style options for the Map include setting the cursor to 'crosshair' or the default 'hand'."],["Calling `Map.style()` with no arguments returns a ui.data.ActiveDictionary object containing the current styles."]]],["The `Map.style()` method returns an `ActiveDictionary` that controls the Map's visual styles. This `ActiveDictionary` can be directly modified to change these styles. In addition to standard UI API styles, the Map also allows customization of the cursor, which can be set to either 'crosshair' or 'hand', with 'hand' being the default. The method takes no arguments.\n"]]