interface MapProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Location.Alpha.MapProps |
![]() | github.com/aws/aws-cdk-go/awscdklocationalpha/v2#MapProps |
![]() | software.amazon.awscdk.services.location.alpha.MapProps |
![]() | aws_cdk.aws_location_alpha.MapProps |
![]() | @aws-cdk/aws-location-alpha ยป MapProps |
Properties for the Amazon Location Service Map.
Example
new location.Map(this, 'Map', {
mapName: 'my-map',
style: location.Style.VECTOR_ESRI_NAVIGATION,
customLayers: [location.CustomLayer.POI],
});
Properties
Name | Type | Description |
---|---|---|
style | Style | Specifies the map style selected from an available data provider. |
custom | Custom [] | Specifies the custom layers for the style. |
description? | string | A description for the map. |
map | string | A name for the map. |
political | Political | Specifies the map political view selected from an available data provider. |
style
Type:
Style
Specifies the map style selected from an available data provider.
customLayers?
Type:
Custom
[]
(optional, default: no custom layers)
Specifies the custom layers for the style.
description?
Type:
string
(optional, default: no description)
A description for the map.
mapName?
Type:
string
(optional, default: A name is automatically generated)
A name for the map.
Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, periods and underscores.
politicalView?
Type:
Political
(optional, default: no political view)
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.