v6

latestOpenAPI 3.0.0raw.githubusercontent.com2020-10-09142348.0 KB
Named Maps

Upload template

Upload template

post/map/named

Request body

versionstring required

Spec version to use for validation.

namestring required

There can only be one template with the same name for any user. Valid names start with a letter or a number, and only contain letters, numbers, dashes (-), or underscores (_)

Example request

{
  "view": {
    "zoom": 4,
    "center": {
      "lng": 0,
      "lat": 0
    },
    "bounds": {
      "west": -45,
      "south": -45,
      "east": 45,
      "north": 45
    },
    "preview_layers": {
      "0": true,
      "layer1": false
    }
  }
}

Response

Ok

template_idstring