Working with annotations

Note: Annotations were previously referred to as Elements.

Annotations live at the top layer of a map, and are created directly inside the Felt app.

Combining annotations with webhooks is a great way to create interactive data apps in Felt.

Listing all annotations on a map

Annotations live at the top layer of a map, and are created directly inside the Felt app.

Annotations are returned as a GeoJSON Feature Collection.

# Your API token and map ID should look like this:
# FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
# MAP_ID="CjU1CMJPTAGofjOK3ICf1D"
FELT_API_TOKEN="<YOUR_API_TOKEN>"
MAP_ID="<YOUR_MAP_ID>"

curl -L \
  -H "Authorization: Bearer ${FELT_API_TOKEN}" \
  "https://felt.com/api/v2/maps/${MAP_ID}/elements"

Listing all annotation groups

Returns a list of GeoJSON Feature Collections, one for each annotation group.

Create or update new annotations

Each annotation is represented by a feature in the POSTed GeoJSON Feature Collection.

For each feature, including an existing annotation ID (felt:id) will result in the annotation being updated on the map. If no annotation ID is provided (or a non-existent one) , a new annotation will be created.

Delete an annotation

Annotations can be deleted by referencing them by ID

Last updated

Was this helpful?