Create a map resource - Amazon Location Service

Amazon Location Service is in preview release and is subject to change.

Create a map resource

Before you can display an interactive map, begin by creating a map resource. You can use the Amazon Location console, the AWS CLI, or the Amazon Location APIs to do this:

To create a map resource using the Amazon Location console

Console
  1. Open the Amazon Location console at https://console.aws.amazon.com/location/.

  2. In the left navigation pane, choose Maps.

  3. Choose Create map.

  4. Fill out the following boxes:

    • Name – Enter a unique name. For example, ExampleMap. Maximum 100 characters. Valid entries include alphanumeric characters, hyphens, and underscores.

    • Description – Enter an optional description.

  5. In the available list, select a map.

  6. Choose Add map.

API

To create a map resource using the Amazon Location APIs

Use the CreateMap action from the Amazon Location Maps APIs.

The following example is an API request to create a map resource called ExampleMap using the VectorEsriNavigation map style. You can enter an optional description.

POST /maps/v0/maps Content-type: application/json { "MapName": "ExampleMap", "DataSource": "Esri", "Configuration": { "Style": "VectorEsriNavigation" }, "Description": "Esri Dark Gray Canvas", "CreateTime": "2020-10-30T01:38:36Z", "UpdateTime": "2020-10-30T01:38:36Z" }
AWS CLI

To create a map resource using AWS CLI commands

Use the create-map command.

The following example is an AWS CLI to create a map resource called ExampleMap using the VectorEsriNavigation map style. You can enter an optional description.

aws location \ create-map \ --map-name "ExampleMap" \ --configuration "Style=VectorEsriNavigation"