Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.Linker.set
Stay organized with collections
Save and categorize content based on your preferences.
Sets an element at the specified index. If the index exceeds that of the list's last element, the element will be added to the end of the list.
Returns this ui.data.ActiveList.
Usage | Returns | Linker.set(index, el) | ui.data.ActiveList |
Argument | Type | Details | this: ui.data.activelist | ui.data.ActiveList | The ui.data.ActiveList instance. |
index | Number | The index to overwrite. |
el | Object | The element to set. |
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\u003eThe \u003ccode\u003eset\u003c/code\u003e method allows you to modify an element at a specific index within a ui.data.ActiveList.\u003c/p\u003e\n"],["\u003cp\u003eIf the provided index goes beyond the existing elements, the new element is appended to the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eIt always returns the original ui.data.ActiveList instance, enabling method chaining.\u003c/p\u003e\n"]]],["The `set` function modifies a `ui.data.ActiveList` instance. It places an element (`el`) at a given `index`. If the `index` is beyond the current list's bounds, the element is appended to the end. The function returns the modified `ui.data.ActiveList` instance itself. It requires an index (Number) and an element (Object) as arguments, where the index will be overwritten by the provided element.\n"],null,["# ui.Map.Linker.set\n\n\u003cbr /\u003e\n\nSets an element at the specified index. If the index exceeds that of the list's last element, the element will be added to the end of the list.\n\n\u003cbr /\u003e\n\nReturns this ui.data.ActiveList.\n\n| Usage | Returns |\n|-------------------------|--------------------|\n| Linker.set`(index, el)` | ui.data.ActiveList |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `index` | Number | The index to overwrite. |\n| `el` | Object | The element to set. |"]]