Styling layers
Last updated
Was this helpful?
Last updated
Was this helpful?
A layer's style is defined in a JSON-based called , or FSL for short. Editors can view the current style of a layer inside a Felt map by clicking on Actions > Edit styles
in a layer's overflow menu (three dots).
Here is an example of a simple visualization, expressed in FSL:
A layer's FSL can be retrieved by performing a simple GET
request to a layer's endpoint:
To update a layer's style, we can send a POST
request with the new FSL to the same layer's /update_style
endpoint.
You can find examples of FSL for different visualization types in of these docs:
: same color and size for all features (vector) or pixels (raster).
: different color per feature or pixel, based on a categorical attribute
: different color or size per feature or pixel, based on a numeric attribute.
: a density-based visualization style, for vector point layers.
: a special kind of visualization for raster elevation layers.