Khi bạn thực hiện và lưu các thay đổi đối với một kiểu bản đồ, những thay đổi đó sẽ trở thành các phiên bản đã lưu mà bạn có thể xem, khôi phục hoặc sao chép.
Để xem tất cả các phiên bản của một kiểu bản đồ, hãy làm như sau:
Chuyển đến Kiểu bản đồ rồi chọn một dự án (nếu cần).
Chọn một kiểu bản đồ hiện có.
Chọn Tuỳ chỉnh.
Chọn Lịch sử phiên bản.
Nhật ký phiên bản được chia thành nhiều loại:
Dưới dạng Bản nháp
Khi bạn chọn Lưu, hệ thống sẽ tạo các phiên bản mới có ngày. Bạn không thể sử dụng bản nháp đã lưu trong ứng dụng cho đến khi xuất bản rõ ràng.
Những thay đổi bạn thực hiện mà không lưu sẽ tạo ra một bản nháp Chưa lưu các thay đổi. Bản nháp này sẽ bị mất nếu bạn đóng cửa sổ trình duyệt hoặc kết thúc phiên.
Là Phiên bản đã xuất bản
Khi bạn tạo một kiểu bản đồ mới, sao chép một kiểu hiện có hoặc nhập một kiểu JSON, kiểu đó sẽ được xuất bản tự động.
Khi bạn chọn Xuất bản, các phiên bản mới có ngày sẽ được tạo để bạn sử dụng trong ứng dụng của mình. Phiên bản được xuất bản gần đây nhất sẽ được áp dụng cho mọi ứng dụng có mã bản đồ được liên kết.
Bạn có thể xem mọi phiên bản trước đó trong Nhật ký phiên bản.
Để sử dụng lại một phiên bản và thay đổi phiên bản đó, bạn phải Khôi phục phiên bản đó (thao tác này sẽ đặt phiên bản đó làm phiên bản hiện tại, đang hoạt động của kiểu bản đồ) hoặc Sao chép phiên bản đó (thao tác này sẽ tạo một kiểu bản đồ mới, riêng biệt dựa trên phiên bản đó).
Nếu bạn có các thay đổi chưa lưu khi khôi phục bất kỳ phiên bản nào, thì những thay đổi chưa lưu đó sẽ tự động trở thành một phiên bản nháp mới có ngày.
Sao chép một phiên bản kiểu bản đồ
Chuyển đến Kiểu bản đồ rồi chọn một dự án (nếu cần).
Chọn một trong các kiểu hiện có rồi nhấp vào Tuỳ chỉnh.
Chọn Lịch sử phiên bản.
Chọn một phiên bản kiểu, sau đó chọn Sao chép ở cuối ngăn Nhật ký phiên bản.
Kiểu này sẽ được sao chép và thêm "Bản sao của" vào tên kiểu.
Kiểu trùng lặp sẽ tự động được xuất bản và bạn sẽ nhận được một đường liên kết để mở kiểu mới trong một thẻ mới.
Khôi phục một phiên bản kiểu bản đồ
Nếu muốn sử dụng phiên bản trước của một kiểu bản đồ, bạn có thể khôi phục phiên bản đó.
Ví dụ: nếu đã tạo một kiểu bản đồ có thương hiệu để hỗ trợ một sự kiện đặc biệt, thì khi sự kiện kết thúc, bạn có thể khôi phục phiên bản chuẩn của kiểu bản đồ.
Chuyển đến Kiểu bản đồ rồi chọn một dự án (nếu cần).
Chọn kiểu bạn muốn, rồi chọn Tuỳ chỉnh.
Chọn Lịch sử phiên bản.
Chọn phiên bản bạn muốn khôi phục, rồi chọn Khôi phục ở cuối ngăn Nhật ký phiên bản. Kiểu được khôi phục sẽ trở thành bản nháp gần đây nhất của kiểu đó.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-27 UTC."],[[["\u003cp\u003eGoogle Cloud's Map Styles allows you to view, restore, or duplicate saved versions of your custom map styles created after August 2, 2022.\u003c/p\u003e\n"],["\u003cp\u003eMap style versions are categorized as drafts (saved or unsaved changes) and published versions, with the latest published version applied to your apps.\u003c/p\u003e\n"],["\u003cp\u003eYou can duplicate a map style version to create a new, independent style based on a previous version, which is automatically published.\u003c/p\u003e\n"],["\u003cp\u003eRestoring a map style version sets it as the current draft, requiring publishing to make it active and visible in your apps.\u003c/p\u003e\n"],["\u003cp\u003ePublishing a map style makes the latest changes visible in all associated apps, so it's recommended to save changes as drafts during the editing process and publish when finalized.\u003c/p\u003e\n"]]],["Map styles have saved versions viewable in **Version history**, categorized as **Drafts** (unsaved or saved but unpublished) and **Published Versions**. To view, restore, or duplicate a version, navigate to **Map Styles**, **Customize**, and **Version history**. **Restore** sets a selected version as the current draft; **Duplicate** creates a new style based on the selected version. **Publishing** makes a version live in apps, while saving stores drafts.\n"],null,["Select platform: [Android](/maps/documentation/android-sdk/cloud-customization/versions \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/cloud-customization/versions \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/cloud-customization/versions \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/cloud-customization/versions \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\n| **Note:** Version history is only available for map styles created on August 2, 2022 or later.\n\nWhen you make and save changes to a map style, those changes become saved\nversions that you can view, restore, or duplicate.\n\nTo view all versions of a map style, do the following:\n\n1. Go to [**Map Styles**](https://console.cloud.google.com/google/maps-apis/studio/styles), and select a project, if needed.\n2. Select an existing map style.\n3. Select **Customize**.\n4. Select **Version history**.\n\nVersion history is divided into different types:\n\n- As **Drafts**\n - Selecting **Save** creates new dated versions. Saved drafts are not usable in your apps until they are explicitly published.\n - Changes you make without saving create an **Unsaved changes** draft that are lost if you close your browser window or end your session.\n- As **Published Versions**\n - When you create a new map style, duplicate an existing style, or import a JSON style, it is published automatically.\n - Selecting **Publish** creates new dated versions that are available for use in your apps. The most recent published version is applied to any apps with the associated map IDs.\n\nYou can view any previous version in **Version history** .\nTo reuse a version and make changes to it, you must\neither **Restore** the version, which sets that version to be the current,\nactive version of the map style, or **Duplicate** it, which creates a new,\nseparate map style based on that version.\n\nIf you have unsaved changes when you restore any version, those unsaved changes\nautomatically become a new dated draft version.\n| **Important:** When you **Publish** any map style associated with one or more map IDs, that style's latest published changes are visible in all apps using map IDs associated with that map style. Until your style changes are complete, **Save** rather than **Publish** your style changes.\n\nDuplicate a map style version\n\n1. Go to [**Map Styles**](https://console.cloud.google.com/google/maps-apis/studio/styles), and select a project, if needed.\n2. Select one of your existing styles, and click **Customize**.\n3. Select **Version history**.\n4. Select a style version, and then at the bottom of the **Version history** pane, select **Duplicate**.\n5. The style is duplicated with \"Copy of\" added to the style name.\n\nThe duplicated style is automatically published and you get a link to open\nthe new style in a new tab.\n| **Note:** A duplicated style does not retain the versions of the style it duplicated.\n\nRestore a map style version\n\nIf you want to use a previous version of a map style, you can restore it.\nFor example, if you created a branded map style to support a special event,\nwhen the event is finished you can restore the standard version of the\nmap style.\n\n1. Go to [**Map Styles**](https://console.cloud.google.com/google/maps-apis/studio/styles), and select a project, if needed.\n\n2. Select the style you want, and select **Customize**.\n\n3. Select **Version history**.\n\n4. Select the version you want to restore, and at the\n bottom of the **Version history** pane, select **Restore**. The restored\n style becomes the most recent draft of the style.\n\n5. Close the **Version history** pane, and select **Publish**.\n\n | **Note:** Style changes can take a few hours to propagate to your apps websites, and apps can take longer if the devices aren't connected to the internet. If you're still not seeing your style changes after a few hours, see [My style changes aren't updating](/maps/documentation/javascript/cloud-customization/troubleshoot#style-delay).\n\n| **Note:** If the restored version is exactly the same as the published version, you can't publish the restored version. If you still want to publish the draft of the restored version, even if it's identical to the published version, you must modify the style in some way, then select **Save** and then **Publish**."]]