Giờ đây, bạn có thể sử dụng ngữ cảnh để thay đổi kiểu bản đồ trong ứng dụng. Hãy tạo kiểu bản đồ sáng, tối và đơn sắc để tự động chuyển đổi kiểu trong ứng dụng mà không cần thay đổi mã bản đồ. Khi tạo một kiểu bản đồ, bạn có thể chọn trong số một số kiểu cơ bản: sáng, tối, đơn sắc sáng hoặc đơn sắc tối. Chọn kiểu cơ bản gần nhất với kiểu mục tiêu của bạn, sau đó tuỳ chỉnh cho phù hợp với nhu cầu của bạn.
Sau khi tuỳ chỉnh kiểu bản đồ sáng và tối, bạn có thể liên kết cả hai với một mã bản đồ. Khi bạn sử dụng mã bản đồ trong các ứng dụng, kiểu bản đồ sẽ tự động chuyển đổi giữa các kiểu bản đồ khi bản đồ chuyển sang chế độ sáng hoặc tối.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-09-10 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/android-sdk/cloud-customization/map-styles#create-new-style) and\n[Associate your style to a map ID](/maps/documentation/android-sdk/cloud-customization/map-styles#associate-style-with-map-id)."]]