Skip to content

/styles/open/light-gray/base

GET
Use dark colors for code blocksCopy
1
https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/open/light-gray/base
Open Basemaps Light Gray Base as a style.

Returns the JSON for Open Basemaps Light Gray Base as a Mapbox style (version 8).

Open Basemaps Light Gray Base

This Open Basemap Light Gray Canvas Base map style is symbolized with a light gray, neutral background style with minimal colors, content, and labels that is designed to draw attention to your thematic content. This comprehensive map base layer features land, water, parks, administrative boundaries, highways, major and minor roads, railways, and building footprints. It is designed to be used with the Open Basemap Light Gray Canvas Reference layer containing labels.

Data providers:

Map data © OpenStreetMap contributors, Microsoft, Esri Community Maps contributors, Map layer by Esri. For more details see Esri and Data Attribution.

Note:

This endpoint does not support worldviews. Making a request to this endpoint with a worldview query parameter will result in a bad request.

Query parameters

NameTypeRequiredDefault valueDescription
tokenstring

The authentication token, used to access the Basemap styles service.

fstringjson

An optional parameter to specify the format in which the response is given. It can either be json or pjson.

echoTokenboolean

An optional parameter to control whether the response includes the token to access style resources.

token

The authentication token, used to access the Basemap styles service.

The token parameter can be:

  • an API key
  • a short-lived token
  • a session token generated by the sessions/start endpoint

API keys and short-lived tokens must be created from an account with the premium:user:basemaps privilege.

Session tokens must be created from an ArcGIS Location Platform account with the premium:user:basemaps privilege.

Note that session tokens cannot be used with the sessions/start endpoint or to fetch custom styles.

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

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>

f

An optional parameter to specify the format in which the response is given. It can either be json or pjson.

Default
json

Enumerated values

json
Click to copy
pjson
Click to copy

echoToken

An optional parameter to control whether the response includes the token to access style resources.

If the echoToken parameter is not provided, the basemap styles response defaults to automatically including the token. If echoToken is provided with a false value, the response will not include the token. In this case, the token must be included with all tile and glyph requests. This approach is more secure.

Default
true

Response status

StatusMeaningDescriptionSchema
200OK

A successful response to a style request.

Style
400Bad Request

Invalid query parameters / Incorrect portal item type.

Error
401Unauthorized

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

Error
403Forbidden

The requested resource cannot be accesed because of incorrent sharing permissions.

Error
5XX**Server Error**

An error occurred on the server.

Error

Examples

Request

Use dark colors for code blocksCopy
1
2
3
# You can also use wget
curl -X GET https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/open/light-gray/base \
  -H 'Authorization: Bearer <YOUR_TOKEN>'

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