The popup block
The popup block contains information on how the popup is displayed and which attributes to show.
These are the fields that each popup block can contain:
type
Optional. "attributes" (default), "iframe", or "html".
titleAttribute
Optional. The attribute (or attributes) used to title the popup if available.
imageAttribute
Optional. The attribute that will be used to populate the popup image if available.
popupLayout
Optional. One of "table" or "list". The way the popup shows its contents. Defaults to "table".
popupLocation
Optional. Where the popup appears: "onMap", "leftSidebar", "rightSidebar", or "modal".
headerLayout
Optional. "standard", "compact", or "none".
keyAttributes
Optional. A list of attributes to show in the popup following the order defined here. If it’s not defined, only attributes with a value will show. If it’s defined, all listed attributes show even when the selected feature doesn’t include them.
url
Iframe popups only. The URL to embed; supports the {{column_name}} template syntax.
width
iframe and html popups only. The popup width in pixels.
height
iframe and html popups only. The popup height in pixels.
"popup": {
"titleAttribute": "name",
"keyAttributes": ["osm_id", "highway", "ref", "place"],
"popupLayout": "list",
"popupLocation": "onMap",
"headerLayout": "standard"
}Iframe and HTML popups
An iframe popup embeds external content. Use the template syntax {{column_name}} (or {{['Column Name']}} for names with spaces) to inject feature values into the URL or HTML.
An html popup renders a rich HTML template that is authored and stored with the layer in the Felt app — the FSL block only sets "type": "html" plus the common fields above; the template itself is not part of the style.
H3 aggregation attributes
H3 hexes show aggregated values rather than raw feature attributes, so their popups reference special attribute names:
"felt:cluster_size"— number of features in the hex"felt:sum:column","felt:mean:column","felt:min:column","felt:max:column"— aggregates ofcolumn
Last updated
Was this helpful?