Karteninhalte kontextbezogen gestalten
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.

Sie können jetzt den Kontext verwenden, um den Kartenstil in Ihrer App zu ändern. Erstellen Sie helle, dunkle und monochrome Kartenstile, um Stile in Ihren Apps automatisch zu wechseln, ohne die Karten-ID zu ändern. Wenn Sie einen Kartenstil erstellen, können Sie zwischen mehreren Basisstilen wählen: hell, dunkel, monochrom hell oder monochrom dunkel. Wählen Sie den Basisstil aus, der Ihrem Zielstil am nächsten kommt, und passen Sie ihn dann an Ihre Anforderungen an.
Nachdem Sie einen hellen und einen dunklen Kartenstil angepasst haben, können Sie beide mit einer Karten-ID verknüpfen. Wenn Sie die Karten-ID in Ihren Anwendungen verwenden, wird der Kartenstil automatisch zwischen den Kartenstilen umgeschaltet, wenn die Karte in den hellen oder dunklen Modus wechselt.
Wenn Sie helle und dunkle Kartenstile mit Karten-IDs verwenden möchten, lesen Sie die Informationen unter Neuen Stil erstellen und Stil mit einer Karten-ID verknüpfen.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-31 (UTC).
[null,null,["Zuletzt aktualisiert: 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)."]]