Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
Map.remove
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menghapus item tertentu dari peta, jika ada.
Menampilkan item yang dihapus atau null jika belum ditambahkan ke peta.
Penggunaan | Hasil |
---|
Map.remove(item) | Objek |
Argumen | Jenis | Detail |
---|
item | Objek | Item yang akan dihapus. |
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\u003e\u003ccode\u003eMap.remove()\u003c/code\u003e deletes a specific item from the map if it's present.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the removed item, or null if the item wasn't in the map.\u003c/p\u003e\n"]]],["The `Map.remove(item)` function removes a specified item from a map. It takes one argument, `item`, which is the object intended for removal. The function returns the removed object if it was present in the map; otherwise, it returns `null`, indicating the item was not found. The return type is an Object. The function's purpose is to delete an entry if present and report its status.\n"],null,["# Map.remove\n\n\u003cbr /\u003e\n\nRemoves the given item from the map, if it exists.\n\n\u003cbr /\u003e\n\nReturns the removed item or null if it hadn't been added to the map.\n\n| Usage | Returns |\n|--------------------|---------|\n| `Map.remove(item)` | Object |\n\n| Argument | Type | Details |\n|----------|--------|---------------------|\n| `item` | Object | The item to remove. |"]]