Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum 15 April 2025 harus memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mengubah peta dasar Google Maps. Memungkinkan: 1) Menetapkan MapType saat ini. 2) Menyediakan gaya kustom untuk peta dasar (MapTypeStyles). 3) Menetapkan daftar available mapTypesIds untuk peta dasar.
Jika dipanggil tanpa parameter, akan mereset jenis peta ke default Google Maps.
Menampilkan ui.Map ini.
Penggunaan
Hasil
Map.setOptions(mapTypeId, styles, types)
ui.Map
Argumen
Jenis
Detail
ini: ui.map
ui.Map
Instance ui.Map.
mapTypeId
String, opsional
mapTypeId untuk menetapkan peta dasar. Dapat berupa "ROADMAP", "SATELLITE", "HYBRID", atau "TERRAIN" untuk memilih salah satu jenis peta Google Maps API standar, atau salah satu kunci yang ditentukan dalam kamus opt_styles. Jika dibiarkan sebagai null dan hanya 1 gaya yang ditentukan dalam opt_styles, gaya tersebut akan digunakan.
styles
Objek, opsional
Kamus objek MapTypeStyle kustom yang diberi kunci dengan nama yang akan muncul di Kontrol Jenis Peta. Lihat: https://developers.google.com/maps/documentation/javascript/reference#MapTypeStyle
types
List<String>, opsional
Daftar mapTypeIds yang akan tersedia. Jika dihilangkan, tetapi opt_styles ditentukan, akan menambahkan semua kunci gaya ke jenis peta Google Maps API standar.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-08 UTC."],[[["Modifies the Google Maps basemap by setting the map type, providing custom styles, and controlling available map types."],["Accepts `mapTypeId`, `styles`, and `types` as parameters to customize the basemap's appearance and functionality."],["Resets the map to the default Google Maps style if called without any parameters."],["Allows the use of standard Google Maps API map types (\"ROADMAP\", \"SATELLITE\", \"HYBRID\", \"TERRAIN\") or custom styles defined using MapTypeStyle objects."],["Offers flexibility in controlling the visibility of map types through the `types` parameter."]]],["This tool modifies the Google Maps basemap by setting the `mapTypeId` (e.g., \"ROADMAP\", \"SATELLITE\"). It allows custom styles (`MapTypeStyles`) via a dictionary, with user-defined names. Users can control available map types using a list of `mapTypeIds`. If no parameters are specified it defaults to the original Google Maps basemap. Example usage is shown, to set different Map Types, add a style (like Inverted) or control the displayed Map Types.\n"]]