MapProps

class aws_cdk.aws_location_alpha.MapProps(*, style, custom_layers=None, description=None, map_name=None, political_view=None)

Bases: object

(experimental) Properties for the Amazon Location Service Map.

Parameters:
  • style (Style) – (experimental) Specifies the map style selected from an available data provider.

  • custom_layers (Optional[Sequence[CustomLayer]]) – (experimental) Specifies the custom layers for the style. Default: - no custom layers

  • description (Optional[str]) – (experimental) A description for the map. Default: - no description

  • map_name (Optional[str]) – (experimental) A name for the map. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, periods and underscores. Default: - A name is automatically generated

  • political_view (Optional[PoliticalView]) – (experimental) Specifies the map political view selected from an available data provider. The political view must be used in compliance with applicable laws, including those laws about mapping of the country or region where the maps, images, and other data and third-party content which you access through Amazon Location Service is made available. Default: - no political view

Stability:

experimental

ExampleMetadata:

infused

Example:

location.Map(self, "Map",
    map_name="my-map",
    style=location.Style.VECTOR_ESRI_NAVIGATION,
    custom_layers=[location.CustomLayer.POI]
)

Attributes

custom_layers

(experimental) Specifies the custom layers for the style.

Default:
  • no custom layers

Stability:

experimental

description

(experimental) A description for the map.

Default:
  • no description

Stability:

experimental

map_name

(experimental) A name for the map.

Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, periods and underscores.

Default:
  • A name is automatically generated

Stability:

experimental

political_view

(experimental) Specifies the map political view selected from an available data provider.

The political view must be used in compliance with applicable laws, including those laws about mapping of the country or region where the maps, images, and other data and third-party content which you access through Amazon Location Service is made available.

Default:
  • no political view

See:

https://docs.aws.amazon.com/location/latest/developerguide/map-concepts.html#political-views

Stability:

experimental

style

(experimental) Specifies the map style selected from an available data provider.

Stability:

experimental