Skip to content

/generate-map/arcgis/imagery/centered-at

GET
Use dark colors for code blocksCopy
1
https://static-maps-api.arcgis.com/arcgis/rest/services/static-maps-service/beta/generate-map/arcgis/imagery/centered-at
Returns a static map in the ArcGIS Imagery style.

Returns an image of a static map in the ArcGIS Imagery style.

The returned Map image is centered at a given WGS84 position, as defined via the lon and lat parameters. Control the zoom using zoomLevel.

The size of the map image (in pixels) is defined via the mapImageWidth and mapImageHeight parameters.

arcgis/imagery

Data providers:

Esri, Maxar, Earthstar Geographics and the GIS User Community. For more details see Esri and Data Attribution.

Query parameters

NameTypeRequiredDefault valueDescription
lonnumber

The longitude of the specified point within the WGS84 coordinate system. The longitude can be in the range of -179.99 to 179.99, representing the East/West or X-Axis.

latnumber

The latitude of the specified point within the WGS84 coordinate system. The latitude can be in the range of -85.05 to 85.05, representing the North/South or Y-Axis.

zoomLevelnumber15

The level of detail or zoom level for a map.

markerSymbolstring

The map marker symbol that will be placed on the static map. This value can be a simple map marker symbol (see SimpleMarkerSymbol) (pin, X, cross, square, circle, triangle) or a data URL encoding of a base64 encoded SVG symbol.

mapImageFormatstringwebp

Returns the image in the specified format.

mapImageWidthinteger200

The width of the requested map image in pixels at 96dpi between 64 and 1024 pixels.

mapImageHeightinteger200

The height of the requested map image in pixels at 96dpi between 64 and 1024 pixels.

markerSymbolScalenumber1

The scale of the overlaying map marker symbol as a multiplier of the symbol's dimensions.

markerSymbolOffsetXnumber

The X offset of the map marker symbol in pixels from the center of the generated map image.

markerSymbolOffsetYnumber

The Y offset of the map marker symbol in pixels from the center of the generated map image.

tokenstring

The authentication token, used to access the static maps service.

lon

The longitude of the specified point within the WGS84 coordinate system. The longitude can be in the range of -179.99 to 179.99, representing the East/West or X-Axis.

Minimum
-179.99
Maximum
179.99

lat

The latitude of the specified point within the WGS84 coordinate system. The latitude can be in the range of -85.05 to 85.05, representing the North/South or Y-Axis.

Minimum
-85.05
Maximum
85.05

zoomLevel

The level of detail or zoom level for a map.

Supplying a level of 5 returns the smallest scale of the static map (e.g. Continent scale) and a level of 20 returns the largest scale (e.g. House scale).

The table below shows the resolution and scale of each level:

levelscaleusage
51:9244648.868618Countries
61:4622324.434309States / Provinces
71:2311162.217155Counties
81:1155581.108577Counties
91:577790.554289County
101:288895.277144Metropolitan Area
111:144447.638572Cities
121:72223.819286City
131:36111.909643Town
141:18055.954822Neighborhood
151:9027.977411Streets
161:4513.9887055City block
171:2256.9943525Buildings
181:1128.4971765Building
191:564.248588Houses
201:282.124294Houses

For more information on levels of detail see this page.

Default
15

Enumerated values

5
Click to copy
6
Click to copy
7
Click to copy
8
Click to copy
9
Click to copy
10
Click to copy
11
Click to copy
12
Click to copy
13
Click to copy
14
Click to copy
15
Click to copy
16
Click to copy
17
Click to copy
18
Click to copy
19
Click to copy
20
Click to copy

markerSymbol

The map marker symbol that will be placed on the static map. This value can be a simple map marker symbol (see SimpleMarkerSymbol) (pin, X, cross, square, circle, triangle) or a data URL encoding of a base64 encoded SVG symbol.

  1. Encode the SVG xml string into a base64 encoding
  2. Append the base64 encoded SVG string to a data url prefix data:/svg+xml;base64,
  3. Encode the base64 encoded string into a url safe string
  4. Set the &markerSymbol parameter to the url encoded string

As a Javascript example:

    function encodeSVG(svgString) {
        const base64Encoded = "data:/svg+xml;base64," + btoa(svgString);
        const urlSafeString = encodeURIComponent(base64Encoded);
        return urlSafeString;
    }

Enumerated values

pin
Click to copy
x
Click to copy
cross
Click to copy
square
Click to copy
circle
Click to copy
triangle
Click to copy
data%3A%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOCA1MCI%2BCiAgPHBhdGggZD0iTTEzLjk5NDM2IDQ5LjAwMDMxYy0uNjcxMDQgMC0xLjMxNS0uMjY2NDUtMS43ODg3LS43NDI2MWwtMTEuMzY4LTExLjQwOEMuMzYzOTggMzYuMzc2MDIuMSAzNS43MzQ2LjEgMzUuMDY2VjEyLjI1Qy4xIDUuMjA2NCA1LjI5MzIgMSAxMy45OTUgMSAyMi42OTY1IDEgMjcuODkgNS4yMDY0IDI3Ljg5IDEyLjI1djIyLjgxNmMwIC42Njg1OS0uMjYzOTggMS4zMS0uNzM3NjYgMS43ODM3bC0xMS4zNjggMTEuNDA4Yy0uNDczNjguNDc2MTYtMS4xMTc2Ljc0MjYxLTEuNzg4Ny43NDI2MXoiIGZpbGw9IiNmZmYiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIi8%2BCiAgPHBhdGggZD0iTTE0LjA2ODAwMSAzLjVDNy43ODkxIDMuNSAyLjcgNS45MjI3IDIuNyAxMi4yMjM3djIyLjgxNmwxMS4zNjgwMDEgMTEuNDA4IDExLjM2OC0xMS40MDh2LTIyLjgxNmMwLTYuMzAxLTUuMDg5NS04LjcyMzctMTEuMzY4LTguNzIzN3ptMCAxNy4xNzhjLTMuMjA5NzAxIDAtNS44MTAwMDEtMi42MDAzLTUuODEwMDAxLTUuODEgMC0zLjIwOTcgMi42MDAzLTUuODEgNS44MTAwMDEtNS44MSAzLjIwOTcgMCA1LjgxIDIuNjAwMyA1LjgxIDUuODEgMCAzLjIwOTctMi42MDAzIDUuODEtNS44MSA1LjgxeiIgZmlsbD0iIzAwN2FjMiIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iLz4KPC9zdmc%2B
Click to copy

mapImageFormat

Returns the image in the specified format.

Default
webp

Enumerated values

png
Click to copy
jpg
Click to copy
webp
Click to copy

mapImageWidth

The width of the requested map image in pixels at 96dpi between 64 and 1024 pixels.

Minimum
64
Maximum
1024
Default
200

mapImageHeight

The height of the requested map image in pixels at 96dpi between 64 and 1024 pixels.

Minimum
64
Maximum
1024
Default
200

markerSymbolScale

The scale of the overlaying map marker symbol as a multiplier of the symbol's dimensions.

This value increments by 0.1.

A scale value less than 1.0 indicates that the symbol is scaled down, while a value greater than 1.0 indicates that the symbol is scaled up.

For example:

  • A scale of 0.5 will reduce the symbol's dimensions to half its original size.
  • A scale of 2.0 will double the symbol's dimensions.
Minimum
0.1
Maximum
2
Default
1

markerSymbolOffsetX

The X offset of the map marker symbol in pixels from the center of the generated map image.

Minimum
-512
Maximum
512
Default
0

markerSymbolOffsetY

The Y offset of the map marker symbol in pixels from the center of the generated map image.

Minimum
-512
Maximum
512
Default
0

token

The authentication token, used to access the static maps service.

The token parameter can be either an API Key or short-lived token.

This parameter is required unless you supply an access token in the request header with one of the following keys using the "Bearer" scheme:

  • Authorization: Bearer <YOUR_TOKEN>
  • X-Esri-Authorization: Bearer <YOUR_TOKEN>

The provided token must be created from an ArcGIS Location Platform account and have the necessary premium:user:staticMaps privilege to use the static maps service.

Developer guide: To learn more, go to Security and authentication.

Response status

StatusMeaningDescriptionSchema
200OK

Static map in a desired image format.

string(binary)
400Bad Request

Invalid query parameters / Incorrect portal item type / Data URL parse failure.

Error
401Unauthorized

Authentication Error. The API key or token is missing, invalid or expired.

Error
403Forbidden

The requested resource cannot be accessed because of incorrect sharing permissions.

Error
404Not Found

The requested resource cannot be found - this could be due to missing map data at the requested location and zoom level.

Error
5XX**Server Error**

An error occurred on the server.

Error

Examples

Request

Use dark colors for code blocksCopy
1
2
# You can also use wget
curl -X GET https://static-maps-api.arcgis.com/arcgis/rest/services/static-maps-service/beta/generate-map/arcgis/imagery/centered-at?lon=-179.99&lat=-85.05&token=YOUR_TOKEN

Response

Use dark colors for code blocksCopy
1
"string"

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.