Skip to content
v2.276.0

Experimental

@aws-cdk/aws-location-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

Style Enum ​

The map style selected from an available data provider.

Example ​

ts
new location.Map(this, 'Map', {
  mapName: 'my-map',
  style: location.Style.VECTOR_ESRI_NAVIGATION,
  customLayers: [location.CustomLayer.POI],
});
python
location.Map(self, "Map",
    map_name="my-map",
    style=location.Style.VECTOR_ESRI_NAVIGATION,
    custom_layers=[location.CustomLayer.POI]
)
java
Map.Builder.create(this, "Map")
        .mapName("my-map")
        .style(Style.VECTOR_ESRI_NAVIGATION)
        .customLayers(List.of(CustomLayer.POI))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Location.Alpha
new Map(this, "Map", new MapProps {
    MapName = "my-map",
    Style = Style.VECTOR_ESRI_NAVIGATION,
    CustomLayers = new [] { CustomLayer.POI }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdklocationalpha/v2
location.NewMap(this, jsii.String("Map"), &MapProps{
	MapName: jsii.String("my-map"),
	Style: location.Style_VECTOR_ESRI_NAVIGATION,
	CustomLayers: []pOI{
		location.CustomLayer_*pOI,
	},
})

Members ​

MemberDescription
VECTOR_ESRI_NAVIGATIONThe Esri Navigation map style, which provides a detailed basemap for the world symbolized with a custom navigation map style that's designed for use during the day in mobile devices.
RASTER_ESRI_IMAGERYThe Esri Imagery map style.
VECTOR_ESRI_LIGHT_GRAY_CANVASThe Esri Light Gray Canvas map style, which provides a detailed vector basemap with a light gray, neutral background style with minimal colors, labels, and features that's designed to draw attention to your thematic content.
VECTOR_ESRI_TOPOGRAPHICThe Esri Light map style, which provides a detailed vector basemap with a classic Esri map style.
VECTOR_ESRI_STREETSThe Esri Street Map style, which provides a detailed vector basemap for the world symbolized with a classic Esri street map style.
VECTOR_ESRI_DARK_GRAY_CANVASThe Esri Dark Gray Canvas map style.
VECTOR_HERE_EXPLOREA default HERE map style containing a neutral, global map and its features including roads, buildings, landmarks, and water features.
RASTER_HERE_EXPLORE_SATELLITEA global map containing high resolution satellite imagery.
HYBRID_HERE_EXPLORE_SATELLITEA global map displaying the road network, street names, and city labels over satellite imagery.
VECTOR_HERE_CONTRASTThe HERE Contrast (Berlin) map style is a high contrast detailed base map of the world that blends 3D and 2D rendering.
VECTOR_HERE_EXPLORE_TRUCKA global map containing truck restrictions and attributes (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE Explore to support use cases within transport and logistics.
VECTOR_GRAB_STANDARD_LIGHTThe Grab Standard Light map style provides a basemap with detailed land use coloring, area names, roads, landmarks, and points of interest covering Southeast Asia.
VECTOR_GRAB_STANDARD_DARKThe Grab Standard Dark map style provides a dark variation of the standard basemap covering Southeast Asia.
VECTOR_OPEN_DATA_STANDARD_LIGHTThe Open Data Standard Light map style provides a detailed basemap for the world suitable for website and mobile application use.
VECTOR_OPEN_DATA_STANDARD_DARKOpen Data Standard Dark is a dark-themed map style that provides a detailed basemap for the world suitable for website and mobile application use.
VECTOR_OPEN_DATA_VISUALIZATION_LIGHTThe Open Data Visualization Light map style is a light-themed style with muted colors and fewer features that aids in understanding overlaid data.
VECTOR_OPEN_DATA_VISUALIZATION_DARKThe Open Data Visualization Dark map style is a dark-themed style with muted colors and fewer features that aids in understanding overlaid data.

Referenced by ​