Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003esetName\u003c/code\u003e function allows you to assign a name to a map layer within the Earth Engine user interface.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetName\u003c/code\u003e on a \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e object returns the layer itself, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e argument is optional and represents the desired name for the layer as a string.\u003c/p\u003e\n"]]],[],null,["# ui.Map.Layer.setName\n\n\u003cbr /\u003e\n\nSets the name of the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|---------------------------|----------------------|\n| Layer.setName`(`*name*`)` | ui.Map.AbstractLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |\n| `name` | String, optional | The name of the layer. |"]]