Maps in the classic Workbook Editor
This page covers the Map object in the classic Workbook Editor. To add a map to a Data App instead, see Map.

Prepare location data
Section titled “Prepare location data”Each data layer reads its locations in one of three formats, set by its Location type:
| Location type | Fields | Example |
|---|---|---|
| Latitude/longitude | Two numeric fields, Latitude and Longitude | 37.554162 and -122.3061 |
| Geo-point | One geography field | A GeoJSON point |
| Geo-hash | One geohash field | 9q9j8ue2v71y5zzy0s4q |
Shape layers read polygons from a geography field instead; see Shape layers.
In Snowflake, these queries produce a latitude/longitude pair and a geohash:
SELECT longitude, latitude FROM MY_TABLE;
SELECT ST_GEOHASH(TO_GEOGRAPHY('POINT(-122.306100 37.554162)')) AS geohash_of_point_a;Load country shapes into Snowflake
Section titled “Load country shapes into Snowflake”For a world map of countries, you can import this file of country shapes into Snowflake: world map country shapes (CSV).
If you already hold GeoJSON in Snowflake, the query below returns one row for each country. It
expects a table TBL_GEOJSON with a VARIANT column, geo_data, that holds a GeoJSON
FeatureCollection:
SELECT feature.value:properties:sovereignt::STRING AS sovereign_country, feature.value:properties:admin::STRING AS admin_name, feature.value:properties:iso_a3::STRING AS iso_code, feature.value:properties:pop_est::INT AS population_estimate, feature.value:properties:gdp_md::INT AS gdp_in_millions, TRY_TO_GEOMETRY(feature.value:geometry) AS geographyFROM TBL_GEOJSON, LATERAL FLATTEN(input => TBL_GEOJSON.geo_data:features) feature;The last column is a GEOMETRY value. Use TRY_TO_GEOGRAPHY instead if you want a shape layer’s
Tolerance in meters; see Shape layers.
Add a map and its layers
Section titled “Add a map and its layers”- Add Map from the Visuals list in the left menu. See Add an object to a sheet.
- In the properties panel, open the map’s Layers tab and select the add button beside Layers.
- Pick a layer type. The layer opens in its own window, named after the layer.
- Fill in the layer’s Data tab. A layer that is missing required fields shows a warning in the list.
A map can show several layers at once:
| Layer type | Shows |
|---|---|
| Point layer | A point for each item at its location, optionally grouped into clusters |
| Heat map | How densely points, or a measure, are spread across an area |
| Shape | Regions such as countries or postcodes, colored by their data |
| Connection layer | Lines from a source location to a destination location |
| Map | The base map drawn underneath |
| Image | A picture placed over the map at set coordinates, such as a floor plan |
In the list, select a layer’s edit (pencil) button to open it again. Its menu offers Duplicate, Rename and Delete, and its toggle shows or hides it. Drag layers to reorder them.
Set the starting view
Section titled “Set the starting view”The map’s Settings tab sets how the map opens:
- Auto-zoom fits the map to its data. Manual opens it at the Latitude, Longitude and Zoom level you enter. To use the view currently shown in the editor, pan and zoom the map and select Set default view.
- Minimum zoom and Maximum zoom limit how far viewers can zoom out and in. They default to 0 and 18.
Point layers
Section titled “Point layers”A point layer draws a point for each dimension value at its location. Use it when each item needs a precise position.

The Data tab has these sections:
-
Dimension: the layer’s Name, and the Dimension that identifies each point. Its value appears in the tooltip, and points are grouped by it when the data is queried.
-
Location: the Location type and its fields. See Prepare location data.
-
Size: Size by sets the point size.
- Fixed (Pixels) and Fixed (Distance) give every point the same Size, in pixels or in kilometers.
- By measure (Pixels) and By measure (Distance) size each point by a measure. Set how the measure is formatted in the tooltip, and its Size range: Auto scales sizes between the smallest and largest measure values, Custom lets you set the Min and Max sizes, and Absolute uses the measure value itself as the size, in pixels or kilometers.
- A size in pixels stays the same at every zoom level. A distance is a size on the ground, so the point grows and shrinks as you zoom.
- Supporting measures adds measures to show in the tooltip, each with an optional Custom label and its own formatting.
-
Grouping: combines nearby points into clusters. See Clusters.
-
Show conditionally: shows the layer only between a Minimum zoom and a Maximum zoom, from 0 to 18. Higher values are closer in.

-
Events: Make selection on click lets viewers filter the workbook by clicking a point. It is on for a new point layer.
-
Tooltips: Show tooltip on hover, and the Supporting measures to list in the tooltip.
-
Sorting and Limiting: under Limiting, Visualization caps how many points the layer loads. Load default loads up to 1,000; Limit data sets your own number, up to 100,000. Export caps the rows exported from the layer.
The Filter tab filters this layer only, as the Filter tab of any chart does. See Filter one chart.
The Style tab sets the layer’s Opacity, the Shape of each point, Labels, and Color:
- Single: one color for every point.
- Categorical: each point takes a color from the palette.
- Gradient: points are colored by a measure.
Under Color, Conditional coloring adds rules that color chosen points.
Clusters
Section titled “Clusters”Turn on Grouping on a point layer’s Data tab to draw clusters, each showing how many points lie in that area.

- Aggregation function: Count counts the points in each cluster. Sum, Min, Max and Avg aggregate the size measure instead, so they are available only when the layer is sized By measure.
- Ranges: each range sets a color and a size in pixels for clusters whose value is above or below a threshold. Select Add Range to add one.
Heat map layers
Section titled “Heat map layers”A heat map shows how densely points occur across an area, or how a measure varies from place to place. It has Data and Filter tabs, and its Data tab has the same Dimension, Location, Show conditionally, Sorting and Limiting sections as a point layer.

The Heat section sets how it is drawn:
- Value by: Fixed weighs every point the same, with Intensity from 0 to 1. By measure weighs each point by a measure, with a Value range of Auto or Custom.
- Detail level: the zoom level, from 0 to 18, at which points reach full intensity. When the map is zoomed out further, points are fainter, so a higher value colors less of the map.
- Re-draw heatmap on zoom: keeps Coverage and Blend the same size on screen at every zoom level, so the heat pattern changes as you zoom in. When it is off, as it is by default, they scale with the map, so the heat stays in place on the ground.
- Coverage: how far each point’s color spreads. Higher values cover more area.
- Blend: how strongly the colors blur together.
- Ranges: turn on to set your own colors, each from a value. Use relative range (%), on by default, sets each value as a percentage of the data range; turn it off to use absolute values. Select Add Range to add one.
Viewers cannot filter by clicking a heat map. To let them filter from the map, add a point layer.
Shape layers
Section titled “Shape layers”A shape layer draws regions, such as sales by country or postcode, from a geography field that holds polygons.

Its Data tab has the Dimension, Show conditionally, Events, Tooltips, Sorting and Limiting sections of a point layer, plus:
- Geography: the field that holds the polygons. Only geography fields are offered.
- Simplified: draws each border with fewer points, so the map needs less data and draws faster.
- Tolerance: how far a simplified border may move from the original. Higher values simplify
more; the default is 2500. The database’s own simplify function does the work, so the unit follows
the column type: in Snowflake, meters for a
GEOGRAPHYcolumn and the column’s coordinate units (degrees for longitude/latitude data) for aGEOMETRYcolumn. See Snowflake’s ST_SIMPLIFY reference. - Limit to visible area, under Limiting: loads only the shapes in the part of the map on screen.
The same border with Simplified off, and on with a tolerance of 2500:


The Style tab sets Opacity, the Border with its Border color and Border width, Labels, Color as for a point layer, and a Legend.
Connection layers
Section titled “Connection layers”A connection layer draws a line from a source to a destination, to show flows such as routes, shipments or the main links between places.

On the Data tab:
- Settings: the layer’s Name, and Show lines as arcs, which draws curved lines in place of straight ones. Arcs read better on a world map.
- Source and Destination: each has a Dimension and a Location type with its fields, as in a point layer. Set the source first.
- Size: the line width, Fixed (Pixels) or By measure (Pixels).
- Sorting and Limiting, as for a point layer.
The Style tab sets Opacity, the Arrow (Show arrow, Arrow position from 0% at the source to 100% at the destination, and Arrowhead size in pixels), the Line style, and Color as for a point layer.
Base map layer
Section titled “Base map layer”The Map layer sets the map drawn underneath the data:
- Map: OpenStreetMap or HERE map.
- For OpenStreetMap, Style (Standard, Humanitarian or Cycle) and Color Preset (Default, Greyscale, Black or Dark mode).
- For HERE, your HERE API key, and optionally a Language and Political view code from HERE’s documentation.
- Opacity.
Image layers
Section titled “Image layers”An image layer places a picture on the map, such as a floor plan, paths or terrain.
- Name and Opacity.
- The image source: From gallery, an image in the workbook’s Gallery; URL link, an image on the web; or From variable, a text variable that holds an image URL, so the image can change as viewers interact.
- Position: the Latitude and Longitude of the image’s Top left corner and Bottom right corner.
- Show conditionally, as for a point layer.
Show a visual tooltip on hover
Section titled “Show a visual tooltip on hover”A visual tooltip is a group of objects, such as a picture and a few numbers, that appears beside a point when a viewer hovers over it. You build it from a variable, chart filters and two actions.

Build the tooltip
Section titled “Build the tooltip”-
Create a variable to hold the hovered point, such as
vActivityID. -
Add the objects the tooltip shows, and a button that closes it.
-
On each object, add a chart filter where the point layer’s dimension equals the variable. See Filter one chart.

-
Group the objects and the button, and hide the group.
-
In Layers, keep the group above the map so it is drawn in front of it. See Change the drawing order.

Show and hide it with actions
Section titled “Show and hide it with actions”Build two actions. See Astrato action blocks for the Actions editor.

-
To show the tooltip, start with a When block from Controls, and select the map and On hover. Inside it:
- From Variables, add a Set variable to block for your variable, and set it to an event parameter block with Dimension Value, the dimension value of the hovered point. This filters the tooltip to that point.
- From Objects, add a Set object container block for the group, select Visibility and set it to true.
- Add another Set object container block, select Position and Top, and set it to an event parameter block with Top Position. To place the tooltip across as well, do the same with Left and Left Position. Both positions are relative to the sheet, from 0 to 100.
-
To hide the tooltip, start a When block with the close button and On click, and set the group’s Visibility to false.

On hover and On click offer the same event parameters: Dimension id, Dimension Value, Measure id, Measure Value, Left Position, Top Position, Layer name, Latitude and Longitude. The map also has an On leave event.
Keep the tooltip when the map is maximized
Section titled “Keep the tooltip when the map is maximized”If the map is Maximizable (see Settings), group the map and the tooltip group together, so the tooltip still shows over the enlarged map.

Known limitations
Section titled “Known limitations”- A size set in distance (Fixed (Distance) or By measure (Distance)) can look larger or smaller from place to place, depending on the map projection.