Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.GeometryLayer.setName
Stay organized with collections
Save and categorize content based on your preferences.
Sets the name of the layer.
Returns this map layer.
Usage | Returns | GeometryLayer.setName(name) | ui.Map.GeometryLayer |
Argument | Type | Details | this: ui.map.geometrylayer | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |
name | String | The name of the layer. |
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\u003e\u003ccode\u003esetName()\u003c/code\u003e allows you to assign a specific name to a GeometryLayer within the Earth Engine user interface.\u003c/p\u003e\n"],["\u003cp\u003eThis function is associated with \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e objects and returns the layer instance for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eThe input argument \u003ccode\u003ename\u003c/code\u003e is a string value representing the desired layer name.\u003c/p\u003e\n"]]],[],null,["# ui.Map.GeometryLayer.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| GeometryLayer.setName`(name)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `name` | String | The name of the layer. |"]]