Styles

Get vector dataset style

get

Returns a style definition corresponding to the latest visualization settings used in the Earthscale app for the dataset version.

If map_id is provided, only visualization settings from that specific map are returned. Returns 204 (No Content) if the dataset version is not in that map or has no visualization settings.

Path parameters
dataset_version_idstringRequired

UUID of the dataset version to query. Each dataset can have multiple versions representing different states of the data over time

Query parameters
api_keystringRequired

Earthscale API key used to authenticate requests and determine which datasets you have access to. API keys can be managed in the Earthscale Web App under the user menu (top-right) -> 'API Settings'

formatconst: mapboxOptional

Style specification format. 'mapbox' returns a MapLibre/Mapbox GL style JSON with sources and layers configured for this dataset

Default: mapbox
map_idany ofOptional

Restrict to visualization settings from a specific Earthscale map. If omitted, returns the most recently used style for this dataset globally

string · uuidOptional
or
nullOptional
Responses
chevron-right
200

Mapbox/MapLibre style JSON

application/json
Responseany
get
/vector/{dataset_version_id}/style

Last updated