Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
Map.style
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eThe \u003ccode\u003eMap.style()\u003c/code\u003e function grants access to the Map's style dictionary, enabling style modifications.\u003c/p\u003e\n"],["\u003cp\u003eCustom style options for the Map include setting the cursor to 'crosshair' or the default 'hand'.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eMap.style()\u003c/code\u003e with no arguments returns a ui.data.ActiveDictionary object containing the current styles.\u003c/p\u003e\n"]]],["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"],null,["# 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, the Map supports the following custom style option:\n\n- cursor, which can be 'crosshair' or 'hand' (default)\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------|--------------------------|\n| `Map.style()` | ui.data.ActiveDictionary |\n\n**No arguments.**"]]