Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.FeatureViewLayer.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 | FeatureViewLayer.setName(name) | ui.Map.AbstractLayer |
Argument | Type | Details | this: ui.map.abstractlayer | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |
name | String, optional | 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\u003eSets or updates the name associated with the FeatureViewLayer.\u003c/p\u003e\n"],["\u003cp\u003eReturns the FeatureViewLayer instance for method chaining.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetName\u003c/code\u003e takes an optional string argument to set the layer's name.\u003c/p\u003e\n"]]],["The `FeatureViewLayer.setName()` method assigns a name to a map layer. It takes an optional string argument, `name`, which specifies the layer's name. The method operates on an instance of `ui.Map.AbstractLayer` and returns the same `ui.Map.AbstractLayer` instance after setting the name. This function allows users to label or identify specific layers within a map interface.\n"],null,["# ui.Map.FeatureViewLayer.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| FeatureViewLayer.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. |"]]