Bạn có một số lựa chọn để tuỳ chỉnh bản đồ Google Maps Platform (GMP). Hầu hết các phương thức này đều yêu cầu bạn sử dụng một mã bản đồ để truy cập vào một số tính năng tuỳ chỉnh bản đồ. Bạn cũng có thể tuỳ chỉnh bản đồ GMP theo cách thủ công bằng cách sử dụng kiểu JSON,
Tuỳ chỉnh bản đồ bằng mã bản đồ
Mã bản đồ là giá trị nhận dạng duy nhất đại diện cho một phiên bản duy nhất của Google Maps. Mã bản đồ chỉ được dùng cho một nền tảng duy nhất – JavaScript, Android, iOS hoặc Bản đồ tĩnh. Bạn liên kết mã bản đồ với một dự án và có thể dùng mã bản đồ để bật các tính năng hoặc quản lý hay tạo kiểu cho bản đồ trên trang web và trong ứng dụng của mình. Để biết thông tin chi tiết, hãy xem bài viết Tổng quan về mã bản đồ.
Tuỳ chỉnh bằng mã bản đồ và tính năng định kiểu bản đồ dựa trên đám mây
Với tính năng định kiểu bản đồ dựa trên đám mây, bạn có thể sử dụng mã bản đồ và kiểu bản đồ để tạo trải nghiệm bản đồ đường đi tuỳ chỉnh cho người dùng. Sau đó, bạn có thể cập nhật kiểu khi cần trong Cloud Console mà không cần phải cập nhật mã của ứng dụng. Để biết thông tin chi tiết, hãy xem phần Định kiểu bản đồ dựa trên đám mây.
Tuỳ chỉnh bản đồ theo cách thủ công bằng cách tạo kiểu JSON
Việc tuỳ chỉnh bản đồ theo cách thủ công cho phép bạn tạo kiểu cho loại bản đồ thông thường và không yêu cầu mã bản đồ. Mọi nội dung cập nhật về kiểu đều yêu cầu cập nhật mã. Bạn không thể kết hợp tính năng định kiểu bản đồ theo cách thủ công và tính năng định kiểu bản đồ dựa trên đám mây trong cùng một ứng dụng.
Để tuỳ chỉnh bản đồ theo cách thủ công bằng cách sử dụng kiểu JSON, hãy xem phần
Thêm bản đồ có kiểu.
[null,null,["Cập nhật lần gần đây nhất: 2025-09-05 UTC."],[[["\u003cp\u003eMap IDs are unique identifiers for Google Maps instances, restricted to a single platform (JavaScript, Android, iOS, or Static maps), and used to enable features, manage, or style maps.\u003c/p\u003e\n"],["\u003cp\u003eCloud-based maps styling allows customization through map IDs and map styles, with updates managed in the Cloud console without requiring code changes in the application.\u003c/p\u003e\n"],["\u003cp\u003eManual map customization with JSON styling offers another method to style maps, but it does not require a map ID, and updates necessitate code changes.\u003c/p\u003e\n"],["\u003cp\u003eUsing cloud-based maps styling on Android requires the latest renderer for the Maps SDK for Android.\u003c/p\u003e\n"],["\u003cp\u003eMultiple platforms are available for customization, including Android, iOS, Javascript, and Web Service.\u003c/p\u003e\n"]]],["Google Maps Platform (GMP) maps can be customized using map IDs or JSON styling. Map IDs, unique identifiers for each map instance, enable cloud-based styling, which allows style updates in the Cloud console without code changes. These are platform-specific. Alternatively, manual customization with JSON styling is possible but requires code updates for style changes, it does not require a map ID. Cloud and manual styles can't be mixed. On Android, the latest renderer is needed for cloud styling.\n"],null,["Select platform: [Android](/maps/documentation/android-sdk/map-ids/customize-maps-overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/map-ids/customize-maps-overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/map-ids/customize-maps-overview \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/map-ids/customize-maps-overview \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\n| To use cloud-based maps styling on Android, you must use the latest renderer for Maps SDK for Android. [Follow these instructions](/maps/documentation/android-sdk/renderer).\n\nYou have several options for customizing Google Maps Platform (GMP) maps. Most of\nthese methods require you to use a map ID to access several different map\ncustomization features. You can also manually customize GMP\nmaps using JSON styling,\n\nCustomize maps with map IDs\n\nA map ID is a unique identifier that represents a single instance of a Google\nMap. Map IDs are restricted to a single platform--JavaScript, Android, iOS, or\nStatic maps. You associate map IDs with a project, and can use map IDs to enable\nfeatures or manage or style maps on your websites and in your applications. For\ndetails, see [Map ID overview](/maps/documentation/android-sdk/map-ids/mapid-over).\n\nCustomize with map IDs and Cloud-based maps styling\n\nWith cloud-based maps styling, you use map IDs and map styles to create a\ncustomized road map experience for your users. You can then update the style as\nneeded in the Cloud console, without having to update your apps' code. For\ndetails, see [Cloud-based maps styling](../cloud-customization/index).\n\nCustomize maps manually with JSON styling\n\nManually customizing maps lets you style the normal map type, and does not\nrequire a map ID. Any updates to the style require a code update. You cannot\ncombine manual map styling and cloud-based maps styling in the same app.\n\nTo customize a map manually using JSON styling, see\n\n[Add a styled map](../styling)."]]