layer-groupLayer Library

APIs to publish layers

With these APIs, you can publish your layers to your workspace library.

Publish map layer

post

Make a layer available in the workspace library for reuse by team members.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
map_idstringRequired

The ID of the map where the layer is located

layer_idstringRequired

The ID of the layer to publish

Body
namestringOptional

The name to publish the layer under

Example: My Layer
Responses
chevron-right
200

Publish layer response

application/json
captionstring · nullableRequired
geometry_typestring · enum · nullableRequiredPossible values:
hide_from_legendbooleanRequired
idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
is_spreadsheetboolean · nullableOptional
legend_displaystring · enum · nullableOptional

Controls how the layer is displayed in the legend.

Possible values:
legend_visibilitystring · enum · nullableOptional

Controls whether or not the layer is displayed in the legend. Defaults to "show".

Possible values:
namestringRequired
ordering_keyinteger · nullableOptional

A sort order key used for ordering layers and layer groups in the legend

progressnumber · floatRequired
refresh_periodstring · enumOptionalPossible values:
statusstring · enumRequiredPossible values:
styleobjectRequired

The Felt Style Language style for the layer

subtitlestring · nullableOptionalDeprecated

Deprecated: use caption instead.

tile_urlstring · nullableOptional

The tile URL for this layer

typestring · enumRequiredPossible values:
post
/api/v2/maps/{map_id}/layers/{layer_id}/publish

Publish map layer group

post

Make a layer group available in the workspace library for reuse by team members.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
map_idstringRequired

The ID of the map where the layer group is located

layer_group_idstringRequired

The ID of the layer group to publish

Body
namestringOptional

The name to publish the layer group under

Example: My Layer
Responses
chevron-right
200

Publish layer group response

application/json
captionstring · nullableRequired
idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
legend_visibilitystring · enum · nullableOptional

Controls how the layer group is displayed in the legend. Defaults to "show".

Possible values:
namestringRequired
ordering_keyintegerOptional

A sort order key used for ordering layers and layer groups in the legend

subtitlestring · nullableOptionalDeprecated

Deprecated: use caption instead.

typestring · enumRequiredPossible values:
visibility_interactionstring · enumRequired

Controls how the layer group is displayed in the legend. Defaults to "default".

Possible values:
post
/api/v2/maps/{map_id}/layer_groups/{layer_group_id}/publish

List library layers

get

List all layers in your workspace's library, or the felt layer library.

You can add a layer from the library to a map by using the "Duplicate layers" API endpoint (POST /api/v2/duplicate_layers) and the layer id provided by this endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
sourcestring · enumOptional

Defaults to listing library layers for your "workspace". Use "felt" to list layers from the Felt data library. Use "all" to list layers from both sources.

Default: workspacePossible values:
Responses
chevron-right
200

LayerLibrary

application/json
typestring · enumRequiredPossible values:
get
/api/v2/library

Last updated

Was this helpful?