Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
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."],[],["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"]]