The Digime Styles API serves map style documents used to render vector tiles in libraries like Mapbox GL JS and MapLibre GL JS.
A style is a JSON document that defines the visual appearance of a map: which sources to draw from, the layers to render, and how those layers are painted (colors, fonts, icons, and so on).
GET : https://dplace-api.themap.world/basemap/styles/{style_name}.json?apikey={YOUR_API_KEY}
| Required parameters | Type | Description |
|---|---|---|
style_name | string | Specifies the name of the style. See Available styles below. |
apikey | string | A valid Digime API key passed as a query parameter. |
| Style name | Description |
|---|---|
dgm_light | DGM Light — the default light-themed basemap style. |
More styles will be added in the future.
$ curl "https://dplace-api.themap.world/basemap/styles/dgm_light.json?apikey=YOUR_API_KEY"The response is a JSON document, following the MapLibre Style Specification, that can be passed directly to a compatible map rendering library, for example:
map = new maplibregl.Map({
container: "map",
style: "https://dplace-api.themap.world/basemap/styles/dgm_light.json?apikey=YOUR_API_KEY",
center: [106.700981, 10.775848],
zoom: 12,
});Response body message | HTTP status code | Description |
|---|---|---|
Not Authorized - No Token | 401 | No API key was used in the query. |
Not Authorized - Invalid Token | 401 | Check the API key you used in the query. |
Forbidden | 403 | There may be an issue with your account, or the API key has restrictions. |
Style {style_name} does not exist | 404 | Check the name of the style you used in the query. |
- The default rate limit for the Digime Styles API endpoint depends on your current pricing plan. If you require a higher rate limit, please contact our sales team.
- If you exceed the rate limit, you will receive an
HTTP 429 Too Many Requestsresponse. - Responses from the Styles API set default Cache-Control headers to ensure fast delivery across edge networks.
- Billed by requests
- See rates and discounts per style requests in our pricing page's Maps section.
Usage of the Styles API is measured in style requests. Details about the number of style requests included in the free tier and the cost per request beyond what is included in the free tier are available on the pricing page.