Menata peta berdasarkan konteks
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.

Sekarang Anda dapat menggunakan konteks untuk mengubah gaya peta di aplikasi Anda. Buat gaya peta terang, gelap, dan monokrom untuk otomatis mengganti gaya di aplikasi Anda tanpa mengubah ID peta. Saat membuat gaya peta, Anda dapat
memilih dari beberapa gaya dasar: terang, gelap, terang monokrom, atau gelap
monokrom. Pilih gaya dasar yang paling mendekati gaya target Anda, lalu sesuaikan dengan kebutuhan Anda.
Dengan gaya peta terang dan gelap yang disesuaikan, Anda dapat mengaitkan keduanya dengan satu ID peta. Saat Anda menggunakan ID peta di aplikasi, gaya peta akan otomatis beralih antara gaya peta saat peta beralih ke mode terang atau gelap.
Untuk mulai menggunakan gaya peta terang dan gelap dengan ID peta, buka
Membuat gaya baru dan
Mengaitkan gaya Anda dengan ID peta.
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-08-31 UTC.
[null,null,["Terakhir diperbarui pada 2025-08-31 UTC."],[],[],null,["# Style maps based on context\n\nSelect platform: [Android](/maps/documentation/android-sdk/cloud-customization/contextual-styling \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/cloud-customization/contextual-styling \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/cloud-customization/contextual-styling \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/cloud-customization/contextual-styling \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\n| Dark styles are [Experimental](/maps/launch-stages#experimental).\n\nYou can now use context to change a map style in your app. Create light, dark,\nand monochrome map styles to automatically switch styles in\nyour apps without changing the map ID. When you create a map style, you can\nselect from several base styles: light, dark, monochrome light, or monochrome\ndark. Choose the base style closest to your target style and then customize for\nyour needs.\n\nWith a light and dark map style customized, you can then associate both with\none map ID. When you use the map ID in your applications, the map style\nautomatically switches between map styles when the map goes into light or dark\nmode.\n\nTo get started using light and dark map styles with map IDs, go to\n[Create a new style](/maps/documentation/ios-sdk/cloud-customization/map-styles#create-new-style) and\n[Associate your style to a map ID](/maps/documentation/ios-sdk/cloud-customization/map-styles#associate-style-with-map-id)."]]