Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
Map.layers
Stay organized with collections
Save and categorize content based on your preferences.
Returns the list of layers associated with the default map.
Usage | Returns | Map.layers() | ui.data.ActiveList<ui.Map.AbstractLayer> |
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 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[[["\u003cp\u003eReturns a list of layers currently displayed on the default map.\u003c/p\u003e\n"],["\u003cp\u003eIt can be used with \u003ccode\u003eMap.layers()\u003c/code\u003e and it returns a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThis function does not take any arguments.\u003c/p\u003e\n"]]],[],null,["# Map.layers\n\n\u003cbr /\u003e\n\nReturns the list of layers associated with the default map.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------|--------------------------------------------|\n| `Map.layers()` | ui.data.ActiveList\\\u003cui.Map.AbstractLayer\\\u003e |\n\n**No arguments.**"]]