> For the complete documentation index, see [llms.txt](https://developers.felt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.felt.com/felt-style-language/types-of-visualizations/simple-visualizations.md).

# Simple visualizations

Simple visualizations are those that show each feature in a vector dataset using the same style or the image as it is in raster ones.

Simple visualizations must define `"type": "simple"` and a single value for each supported style and label properties.

### Example

The Airports layer in Felt is an example of a simple visualization using a vector dataset

![](https://293097899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLlIfNdbm4rCsu755xrdc%2Fuploads%2F801reypHVv0Jqoj9H86x%2FScreenshot%202022-07-28%20at%2017.04.07.png?alt=media\&token=26cfb948-eec4-44be-a207-ea04e54d0f52)

and is defined by the following style:

```json
{
  "attributes": {
    "ele": {"displayName": "Elevation (meters)"},
    "faa": {"displayName": "FAA Code"},
    "iata": {"displayName": "IATA Code"},
    "icao": {"displayName": "ICAO Code"},
    "name": {"displayName": "Name"},
    "name_en": {"displayName": "Name (EN)"},
    "wikipedia": {"displayName": "Wikipedia entry"}
  },
  "config": {"labelAttribute": ["name_en", "name"]},
  "filters": [["name", "isnt", null], "and", ["name", "ne", ""]],
  "label": {
    "color": "hsl(40,30%,40%)",
    "fontSize": {"linear": [[12, 12], [20, 20]]},
    "fontStyle": "Normal",
    "fontWeight": 400,
    "haloColor": "hsl(40,20%,85%)",
    "haloWidth": 1.5,
    "justify": "auto",
    "letterSpacing": 0.1,
    "lineHeight": 1.2,
    "maxLineChars": 10,
    "maxZoom": 23,
    "minZoom": 10,
    "offset": [8, 0],
    "padding": 10,
    "placement": ["E", "W"]
  },
  "legend": {},
  "paint": {
    "color": "hsl(40,30%,80%)",
    "highlightColor": "#EA3891",
    "highlightStrokeColor": "#EA3891",
    "highlightStrokeWidth": {"linear": [[3, 0], [20, 2]]},
    "isSandwiched": false,
    "opacity": 1,
    "size": {"linear": [[3, 1], [20, 6]]},
    "strokeColor": "hsl(40,20%,55%)",
    "strokeWidth": {"linear": [[3, 0.5], [20, 2]]}
  },
  "version": "2.3.1"
}
```

{% hint style="info" %}
The `{"linear": [[zoom, value], …]}` objects used for `size`, `fontSize`, and `strokeWidth` above are **interpolators** — values that change with zoom level. See [Zoom-based styling](/felt-style-language/zoom-based-styling.md) and [Interpolators](/felt-style-language/zoom-based-styling/interpolators.md) for the full syntax; plain numbers work anywhere an interpolator does.
{% endhint %}

Raster layers can also use `simple` to display imagery as-is — see [Raster visualizations](/felt-style-language/types-of-visualizations/raster.md).

### More patterns

**Icon markers (points).** Set `iconImage` to draw points as icons; the icon takes the layer's `color` and `size`. See [Icons](/felt-style-language/icons.md) for the full catalog.

```json
{
  "version": "2.3.1",
  "type": "simple",
  "filters": ["status", "in", ["active"]],
  "paint": {
    "iconImage": "hospital",
    "iconFrame": "frame-circle",
    "color": "#E74C3C",
    "size": 4,
    "opacity": 0.9,
    "isClickable": true,
    "isHoverable": true
  },
  "legend": {}
}
```

**Road-style casing (lines).** A [paint array](/felt-style-language/style-definition-blocks/the-paint-block.md#paint-arrays-casing-and-layered-rendering) renders last-to-first, so the wider casing layer goes second (underneath) and the narrower fill goes first (on top).

```json
{
  "version": "2.3.1",
  "type": "simple",
  "config": {"labelAttribute": ["name"]},
  "paint": [
    {"color": "#FFFFFF", "size": 4, "lineCap": "round", "lineJoin": "round", "isClickable": true},
    {"color": "#374151", "size": 8, "lineCap": "round", "lineJoin": "round"}
  ],
  "label": {
    "color": "auto",
    "haloColor": "auto",
    "haloWidth": 2,
    "placement": "Above",
    "minZoom": 12
  },
  "legend": {}
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.felt.com/felt-style-language/types-of-visualizations/simple-visualizations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
