Wählen Sie Ihre Cookie-Einstellungen aus

Wir verwenden essentielle Cookies und ähnliche Tools, die für die Bereitstellung unserer Website und Services erforderlich sind. Wir verwenden Performance-Cookies, um anonyme Statistiken zu sammeln, damit wir verstehen können, wie Kunden unsere Website nutzen, und Verbesserungen vornehmen können. Essentielle Cookies können nicht deaktiviert werden, aber Sie können auf „Anpassen“ oder „Ablehnen“ klicken, um Performance-Cookies abzulehnen.

Wenn Sie damit einverstanden sind, verwenden AWS und zugelassene Drittanbieter auch Cookies, um nützliche Features der Website bereitzustellen, Ihre Präferenzen zu speichern und relevante Inhalte, einschließlich relevanter Werbung, anzuzeigen. Um alle nicht notwendigen Cookies zu akzeptieren oder abzulehnen, klicken Sie auf „Akzeptieren“ oder „Ablehnen“. Um detailliertere Entscheidungen zu treffen, klicken Sie auf „Anpassen“.

Style dynamic maps

Fokusmodus
Style dynamic maps - Amazon Location Service
Diese Seite wurde nicht in Ihre Sprache übersetzt. Übersetzung anfragen

Amazon Location Service provides two options for styling your dynamic maps: using predesigned AWS Map Styles or customizing the map style using style descriptors.

Use predesigned AWS map styles

AWS map styles are predefined styles that adhere to industry standards to deliver a sophisticated, professional aesthetic. By leveraging these styles in Amazon Location Service, you can reduce time-to-market and eliminate the need for dedicated cartographers to create map styles from scratch.

For more information, see AWS map styles and customization.

To learn more about predefined map styles, see:

Benefits of using AWS map styles

  • Time and resource efficiency: AWS Map Styles allow you to bypass the time-consuming and resource-intensive process of designing map styles from scratch. This allows you to focus on core functionalities while providing visually appealing maps.

  • Professional and consistent aesthetics: Skilled cartographers have meticulously crafted AWS Map Styles, following industry best practices. Every detail, from color palettes to label placements, has been optimized for clarity and legibility.

  • Seamless integration: AWS Map Styles integrate seamlessly with your application's design language, providing a polished and consistent mapping experience for your end-users.

Get started with AWS map styles

  • Check the AWS map styles offering: In the Amazon Location Service console, navigate to the Map section to explore the available styles.

  • Choose the style that matches your needs: Select the style that best aligns with your application's design and user experience requirements.

  • Integrate the style: Follow the provided documentation to integrate the chosen style into your application using Amazon Location Service APIs or SDKs.

Learn more about How to display a map.

Use cases

  • Customizing map styles based on color schemes like "Light" or "Dark".

  • Displaying maps according to specific political views or geographic boundaries.

  • Optimizing map styles for different use cases, such as logistics or default views.

Understand the request

The request supports parameters like ColorScheme, Key, and PoliticalView to define the map's style and presentation. The Style parameter is required to specify the desired map style.

  • ColorScheme: Sets the map's color tone, such as "Light" or "Dark".

  • PoliticalView: Specifies the political view for map visualization.

  • Style: Defines the style of the map, like "Standard" or "Monochrome".

Understand the response

The response provides headers like CacheControl, ContentType, and ETag, and contains the style descriptor as a JSON blob. The headers give caching information, content format details, and versioning for style changes.

  • CacheControl: Controls caching configurations for the style descriptor.

  • ContentType: Indicates the response format as JSON.

  • ETag: Provides a version identifier for the style descriptor.

  • Blob: Contains the body of the style descriptor in JSON format.

Customize style descriptors

To customize map styles, you must understand the structure of the style descriptor, which is usually a JSON object defining the visual representation of map elements. The style descriptor comprises several layers, each controlling the style for a specific type of map element, such as roads, parks, buildings, or labels.

  • Use a predefined style descriptor as a base: You can either start with a predefined style descriptor or create one from scratch using map style editors such as Maputnik.

  • Understand the structure: The style descriptor is a hierarchical JSON object that contains layers, each representing a different map element. Each layer has properties that control the visual appearance of that element, such as color, opacity, and line width.

  • Modify styles for layers: Depending on the map style editor you’re using, you can change existing layers or add new ones to customize the style. For example, you can adjust the color of roads, modify the font size of labels, or add custom icons for specific locations.

  • Define styles for different zoom levels: Map style editors allow you to define different styles for different zoom levels, which is useful for controlling the level of detail and visibility based on user zoom interactions.

  • Test and iterate: After modifying or creating the style descriptor, test the customized style on a map to ensure it displays as intended. Iterate and adjust until you achieve the desired visual style.

DatenschutzNutzungsbedingungen für die WebsiteCookie-Einstellungen
© 2025, Amazon Web Services, Inc. oder Tochtergesellschaften. Alle Rechte vorbehalten.