> **Experimental**
>
> `@aws-cdk/aws-location-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# CustomLayer

An additional layer you can enable for a map style.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/map.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-location-alpha/lib/map.ts#L79)

## Example

TypeScript:

```ts
new location.Map(this, 'Map', {
  mapName: 'my-map',
  style: location.Style.VECTOR_ESRI_NAVIGATION,
  customLayers: [location.CustomLayer.POI],
});
```

Python:

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

Java:

```java
Map.Builder.create(this, "Map")
        .mapName("my-map")
        .style(Style.VECTOR_ESRI_NAVIGATION)
        .customLayers(List.of(CustomLayer.POI))
        .build();
```

C# / .NET:

```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 }
});
```

Golang:

```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

| Member | Description |
| --- | --- |
| `POI` | The 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`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-location-alpha.MapProps.html).customLayers
