Wenn Sie Änderungen an einem Kartenstil vornehmen und speichern, werden diese Änderungen zu gespeicherten Versionen, die Sie aufrufen, wiederherstellen oder duplizieren können. Um die Versionen eines Stils zu sehen, wählen Sie Versionsverlauf aus.
So rufen Sie alle Versionen eines Kartenstils auf:
Rufen Sie Kartenstile auf und wählen Sie bei Bedarf ein Projekt aus.
Wählen Sie einen vorhandenen Kartenstil aus.
Wählen Sie die Option Stil anpassen aus.
Wählen Sie Versionsverlauf aus.
Der Versionsverlauf ist nach Typen unterteilt:
Entwürfe
Wenn Sie auf Speichern klicken, werden neue datierte Versionen erstellt. Gespeicherte Entwürfe müssen ausdrücklich veröffentlicht werden, bevor sie in Ihren Apps verwendet werden können.
Wenn Sie Änderungen vornehmen, ohne zu speichern, wird ein Entwurf vom Typ Nicht gespeicherte Änderungen erstellt. Die Änderungen gehen verloren, wenn Sie Ihr Browserfenster schließen oder Ihre Sitzung beenden.
Veröffentlichte Versionen
Wenn Sie einen neuen Kartenstil erstellen, einen vorhandenen Stil duplizieren oder einen JSON-Stil importieren, wird dieser Stil automatisch veröffentlicht.
Wenn Sie Veröffentlichen auswählen, werden neue datierte Versionen erstellt, die Sie in Ihren Apps verwenden können. Die zuletzt veröffentlichte Version wird auf alle Apps mit den entsprechenden Karten-IDs angewendet.
Im Versionsverlauf können Sie sich alle früheren Versionen ansehen.
Wenn Sie eine Version wiederverwenden und Änderungen daran vornehmen möchten, haben Sie zwei Möglichkeiten. Sie können Wiederherstellen dafür auswählen, um die Version auf die aktuelle, aktive Version des Kartenstils zurückzusetzen, oder Duplizieren, um einen neuen, separaten Kartenstil auf Grundlage dieser Version zu erstellen.
Wenn beim Wiederherstellen einer Version ungespeicherte Änderungen vorhanden sind, werden diese automatisch in eine neue datierte Entwurfsversion übernommen.
Kartenstilversion duplizieren
Rufen Sie Kartenstile auf und wählen Sie bei Bedarf ein Projekt aus.
Wählen Sie einen vorhandenen Stil aus und klicken Sie auf Stil anpassen.
Wählen Sie Versionsverlauf aus.
Wählen Sie eine Stilversion aus und klicken Sie unten im Bereich Versionsverlauf auf Duplizieren.
Der Stil wird dupliziert und seinem Namen „Copy of“ vorangestellt.
Der duplizierte Stil wird automatisch veröffentlicht und ein Link angezeigt, über den er in einem neuen Tab geöffnet werden kann.
Kartenstilversion wiederherstellen
Wenn Sie eine frühere Version eines Kartenstils verwenden möchten, können Sie sie wiederherstellen.
Falls Sie beispielsweise einen Kartenstil für eine bestimmte Marke erstellt haben, der nur bei einem besonderen Ereignis verwendet werden soll, können Sie nach Ende dieses Ereignisses die Standardversion des Kartenstils wiederherstellen.
Rufen Sie Kartenstile auf und wählen Sie bei Bedarf ein Projekt aus.
Wählen Sie den gewünschten Stil und dann Stil anpassen aus.
Wählen Sie Versionsverlauf aus.
Wählen Sie die Version aus, die Sie wiederherstellen möchten. Wählen Sie dann unten im Bereich Versionsverlauf die Option Wiederherstellen aus. Der wiederhergestellte Stil wird zum neuesten Entwurf.
Schließen Sie den Bereich Versionsverlauf und wählen Sie Veröffentlichen aus.
[null,null,["Zuletzt aktualisiert: 2024-06-28 (UTC)."],[[["\u003cp\u003eCloud-based map styles have version history, allowing you to view, restore, or duplicate previous versions of your custom styles.\u003c/p\u003e\n"],["\u003cp\u003eMap style versions are categorized as drafts (saved or unsaved) and published versions, impacting their availability in your applications.\u003c/p\u003e\n"],["\u003cp\u003eYou can duplicate a map style version to create a new, independent style based on a previous iteration.\u003c/p\u003e\n"],["\u003cp\u003eRestoring a map style version reverts the current style to a selected previous version, requiring publishing to make the changes live in your applications.\u003c/p\u003e\n"],["\u003cp\u003eStyle changes, including publishing and restoring versions, may take some time to reflect in your apps and websites.\u003c/p\u003e\n"]]],["Map styles have saved versions viewable in **Version history**, accessible via **Map Styles** in the console. Saving creates dated **Drafts**, not usable in apps until published. Publishing creates dated **Published Versions**, immediately available to apps with associated map IDs. You can **Restore** a previous version to make it the current draft or **Duplicate** a version to create a new style. Unsaved changes are saved as a draft when restoring. Duplicated styles don't retain original version history.\n"],null,["# Work with map style versions\n\nSelect 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\n### Duplicate 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---------------------------\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/android-sdk/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**."]]