Skip to content
v2.277.0

Experimental

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

CustomLayer Enum ​

An additional layer you can enable for a map style.

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
POIThe POI custom layer adds a richer set of places, such as shops, services, restaurants, attractions, and other points of interest to your map.

Referenced by ​

  • MapProps.customLayerscustom_layerscustomLayersCustomLayersCustomLayers