Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.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, 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."],[[["\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. |"]]