Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ui.Map.Linker.set
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menetapkan elemen pada indeks yang ditentukan. Jika indeks melebihi elemen terakhir daftar, elemen akan ditambahkan ke akhir daftar.
Menampilkan ui.data.ActiveList ini.
Penggunaan | Hasil |
---|
Linker.set(index, el) | ui.data.ActiveList |
Argumen | Jenis | Detail |
---|
ini: ui.data.activelist | ui.data.ActiveList | Instance ui.data.ActiveList. |
index | Angka | Indeks yang akan ditimpa. |
el | Objek | Elemen yang akan ditetapkan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 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. |"]]