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.FeatureViewLayer.setShown
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menetapkan visibilitas lapisan.
Menampilkan lapisan peta ini.
Penggunaan | Hasil |
---|
FeatureViewLayer.setShown(shown) | ui.Map.AbstractLayer |
Argumen | Jenis | Detail |
---|
ini: ui.map.abstractlayer | ui.Map.AbstractLayer | Instance ui.Map.AbstractLayer. |
shown | Boolean, opsional | Apakah lapisan ditampilkan. |
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\u003eFeatureViewLayer.setShown()\u003c/code\u003e method controls the visibility of the layer on the map.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts an optional boolean argument, \u003ccode\u003eshown\u003c/code\u003e, which determines whether the layer is visible or hidden.\u003c/p\u003e\n"],["\u003cp\u003eWhen called, it returns the \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `setShown` method controls a map layer's visibility. It accepts a boolean `shown` argument, determining if the layer is displayed (true) or hidden (false). This method is applied to a `ui.Map.AbstractLayer` instance and returns the same `ui.Map.AbstractLayer` object. The `shown` parameter is optional and represents the desired visibility state of the layer.\n"],null,["# ui.Map.FeatureViewLayer.setShown\n\n\u003cbr /\u003e\n\nSets the visibility of the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|----------------------------------------|----------------------|\n| FeatureViewLayer.setShown`(`*shown*`)` | ui.Map.AbstractLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |\n| `shown` | Boolean, optional | Whether the layer is shown. |"]]