Examples
Colored by Value
Sized by Value
Color and Size by Different Values
Categorical Coloring
Attributes
Name of the table to query
Array of filter IDs to apply
Column name for latitude values
Column name for longitude values
Column or expression for coloring points. Numeric values create a gradient scale, categorical values (strings) assign discrete colors from the palette. Examples: “sum(sales)” (numeric gradient), “category” (categorical colors)
Column or expression for sizing points (e.g., “sum(customers)”). If not provided, all points will be the same size
Column name to use as the point title in tooltips (e.g., “city_name”). If not provided, lat/lng will be shown
Column name to use as the point subtitle in tooltips (e.g., “region”). Displays as a second line with muted text
Shape of the point markerAllowed values:
circlepinsquaretrianglestardiamond
Single color for all points (hex, rgb/rgba, or CSS color name)
color_palette
Array of colors for coloring. For numeric color_value: creates gradient. For categorical color_value: assigns discrete colors to categories (cycles if more categories than colors)
Base size of points in pixels
Scale multiplier for value-based sizing. Higher values create larger size differences
Show tooltips on hover
tooltip_fields
Array of SQL expressions for additional fields to show in tooltip (e.g., [“category”, “emissions”])
Format for color values in tooltip
Format for size values in tooltip
zoom_threshold
Zoom range [min, max] where this layer is visible (e.g., [0, 8] shows layer from zoom 0 to 8)
Show legend for this layer
Custom label for the legend (defaults to table name)
Custom SQL WHERE condition to apply to the query. For date filters, use date_range instead.
Custom SQL HAVING condition to apply to the query after GROUP BY
Maximum number of rows to return from the query
Column name(s) with optional direction (e.g. “column_name”, “column_name desc”)
Custom SQL QUALIFY condition to filter windowed results

