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.GeometryLayer.setColor
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menetapkan warna CSS bentuk dalam lapisan.
Menampilkan lapisan peta ini.
Penggunaan | Hasil |
---|
GeometryLayer.setColor(color) | ui.Map.GeometryLayer |
Argumen | Jenis | Detail |
---|
ini: ui.map.geometrylayer | ui.Map.GeometryLayer | Instance ui.Map.GeometryLayer. |
color | String | Warna lapisan. |
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\u003eDefines the color of shapes within a GeometryLayer on the map.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetColor()\u003c/code\u003e method accepts a color string as input and applies it to the layer's shapes.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `GeometryLayer.setColor(color)` method modifies the color of shapes within a map layer. It accepts a `color` argument, which is a string representing the desired color. The method's primary action is to update the CSS color of the layer's shapes. Upon execution, it returns the `ui.Map.GeometryLayer` instance, allowing for method chaining. The input argument is `this`, referencing the specific `ui.Map.GeometryLayer` instance that the function is called upon.\n"],null,["# ui.Map.GeometryLayer.setColor\n\n\u003cbr /\u003e\n\nSets the CSS color of shapes in the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|---------------------------------|----------------------|\n| GeometryLayer.setColor`(color)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `color` | String | The color of the layer. |"]]