Custom maps

A custom map is a saved composition: some of your files stacked as layers, styled the way you want, over a basemap you picked. It has its own link, its own embed code, and its own access setting.

This page covers building one in the web app. If you would rather write the map as JSON and create it from the CLI, MCP, or the API, the same map is described field by field in Map documents.

Making one

Go to Custom Maps and choose New map. You get a title, an optional description, category, and tags, then a layer picker.

Add any file that has finished processing. You can add the same file more than once, which is useful when you want to show one dataset two ways, say points coloured by type on one layer and sized by value on another. Each copy is styled on its own.

A map can also be on another world: the Moon, Mars, Venus, Mercury, Ceres, Europa, Ganymede, Callisto, Io or Titan. Set World under Basemap, and the map and its layers then stay on that world. See Maps of other worlds.

Layer order

The layers panel lists layers from top to bottom the same way they draw on the map: the first row sits on top. Drag the six-dot handle on the left of a row to restack them. A time series stays one row; expanding its frames does not change the stack. Note that a map document stores the reverse order: spec.layers[0] is the bottom layer, so the first row here is the last entry there. See Map documents.

The eye on a row hides that layer only. Hiding a shapefile or raster next to a time series leaves the series on. The eye on the series row turns the whole series off. Expanding the series and turning off one frame pins that frame without hiding your other layers.

If you delete a file that a map still uses, that layer stays on the map until you take it off. In the builder it is labelled (not in Files). Use Remove on that row, or Remove missing layers under the warning, then save.

The opening view

Whatever a visitor sees first is set here, not wherever you happened to leave the map.

  • Use current view as initial takes the camera position you are looking at right now.
  • Min zoom and max zoom stop people from zooming further out or further in than your data supports. The builder suggests sensible limits from the layers you picked.
  • Pan bounds keep the map inside a box. Draw it on the map or type the coordinates. Worth setting for a city or site map, so visitors do not end up lost in the ocean.
  • Default view for visitors picks 2D or terrain, and flat map or globe. Visitors can still switch once they are in.

Basemaps

Pick a basemap and a theme. There are two basemaps: Streets, a vector map drawn from OpenStreetMap, and Satellite, imagery of the whole world.

Themes recolour the Streets basemap. They are default, dark, forest, ocean, warm, satellite (shown as Earth tones), minimal-light, and minimal-dark. The satellite theme is a colour scheme for the street map, not imagery; its name in maps you already saved does not change.

You can also make your own. In Organization settings, open Basemap themes, then Custom themes: start from a preset, change the colours, widths and opacity of the features you want (water, parks, roads, buildings and so on) while the preview updates, and save it under a name. Saved themes appear in the map builder under Map colour theme, next to the presets, and the map's visitors and embeds see the theme you chose. Use as organization default makes a theme the look of your Data map. Deleting a theme sends the maps that used it back to the preset it was based on. Custom themes need the Community plan or above.

Labels, roads and rail, and boundaries are separate toggles, so you can put a labelled street basemap under an opaque raster without the labels disappearing, or strip everything back to plain ground under a busy vector layer.

Streets, Satellite and themes are Earth's. A map on another world lists that world's own basemap instead.

Satellite imagery

Satellite shows cloud-free Sentinel-2 imagery at about 10 m a pixel. Over most of the United States, southern Canada and Europe it is our own summer mosaic. Everywhere else it is the ESA WorldCover 2021 composite, which is a median of the whole year, so high mountains can look snowier than they are in summer and very cloudy regions can look a little hazy up close.

The same label, road and boundary toggles work over the imagery, and 3D buildings can be turned on in terrain view. Themes do not change Satellite. Open sea is drawn in a flat dark blue.

The imagery credit (Copernicus Sentinel data, ESA WorldCover, and our mosaics) is shown in the map's attribution and printed on every sheet. Satellite tiles do not count towards your organization's tile requests.

Styling layers

Open a layer's style editor with the pencil in the layers panel. What you get depends on whether the layer is vector or raster.

Vector layers

Three ways to colour a layer:

Simple is one colour for everything. Set fill and stroke separately, each with its own opacity, and a stroke width between 0.5 and 24. This is the right choice more often than people expect.

Categorized colours features by an attribute: land use type, status, owner. Pick the attribute and press Classify. Sarkoa reads the actual values in your file and assigns each one a colour. Up to 50 classes.

You get three palettes. Distinct is the default and tries to keep neighbouring classes easy to tell apart. Colorblind-safe uses the Okabe-Ito set. If two adjacent categories end up looking similar, Shuffle colors reassigns them without changing the classification.

A common mistake is setting the attribute and stopping there. Choosing an attribute does not colour anything until you press Classify, and a map saved in that half-finished state draws as a single flat colour.

Graduated buckets a numeric attribute into ranges and paints them along a colour ramp. Choose the number of classes and how the breaks are calculated:

  • Equal interval cuts the range into equal-width bands. Good when the values are evenly spread.
  • Quantile puts the same number of features in each class. Good when they are not.
  • Natural breaks (Jenks) finds gaps in the data and cuts there.
  • Manual lets you type the breaks yourself.

You can normalize by a second attribute, which is how you get a rate rather than a count. Population divided by area, incidents divided by households, that kind of thing.

Continuous colours the same kind of attribute on a smooth ramp instead of in classes, for amounts where class boundaries would invent steps that are not in the data. The colour range starts at the 2nd to 98th percentile of the field, so a few extreme values do not wash out the rest; change it with From and To, or press Fit to data to measure it again, rounded to numbers a reader would say (40 to 500, not 41.14 to 501.3). Values past either end take the end colour. Choose a Log scale when the values run over several orders of magnitude, such as populations or flows. The legend shows the ramp as a bar with round numbers marked under it where their colours fall, and its ends as "40 or less" and "500 or more"; on a log scale the marks bunch toward the high end, and the title says so.

Raster layers

What you can adjust follows from how the file was classified during processing, which is covered in File optimization.

  • Visual imagery gets opacity and band selection.
  • Measurement values get a colour ramp with adjustable minimum and maximum, plus the option to hide values outside a range.
  • Categorical maps use the colour table from the source file.

If a raster is offering the wrong controls, it was probably sorted into the wrong kind. Switch it in Processing details on the file.

Legends

Every styled layer can have a legend entry. Set the legend title on the layer, then choose where the legend panel sits and whether visitors can collapse it. You can reorder entries so the layer people care about is at the top.

Legends work for simple styles too, not only categorized and graduated ones.

Clickable legends

On a categorized or graduated layer, visitors can click a row in the legend to hide that class on the map, and click it again to bring it back. Show all at the top of the legend brings every class back. This works for vector styles and for visualizations coloured by an attribute. Hidden classes combine with your filters, so a visitor who hides "Lakes" while a filter shows only one province sees that province without its lakes.

The address bar keeps what is hidden, so copying the link shares the same view. Keyboard users can tab to each row and press Enter or Space.

It is on by default. To keep a legend read-only, clear Let viewers hide a class by clicking its legend row in the legend settings, or set spec.legends.interactive to false in the map document.

Adjusting a raster's colour scale

A raster coloured from its values (a measurement raster: heights, temperatures, millimetres of movement) has an Adjust button beside its legend title. It opens a bar that runs across the data's whole range, coloured the way each value is drawn, with a handle at each end of the colour scale:

  • Drag a handle, or type a value in From or To, to stretch the colours over the range that matters. The map recolours as you drag, without loading anything new.
  • Show only values in this range hides everything outside the two handles.
  • Reset goes back to the map's own scale.

What a visitor changes lasts for their visit only and does not change the map. Someone who can edit the map also gets Save as the map's default, which makes the current scale the map's own. A Filters panel slider on the same layer keeps working on top of the adjusted scale. While a raster series shows the change between two dates, the handles set the change's scale instead.

It is on for every such layer. To keep a layer's scale fixed, clear Visitors can adjust the colour scale from the legend in the legend settings, or set adjustable to false in the layer's legend in the map document.

Popups

Turn on popups for a vector layer and clicking a feature opens its attributes. Choose which field is the heading and which fields are listed underneath. You do not have to show all of them, and usually should not.

If your data has a column of image URLs, list it under image fields and the popup renders thumbnails instead of raw links.

A popup can also show up to two small charts drawn from the clicked feature's own numbers. If each feature carries a value per year in its own column (pop_2001, pop_2006, and so on), the popup panel offers to chart that series in one click. Bars suit values across years or categories, a line suits one quantity over time, and parts of a whole (land cover shares, a vote split) show as a single stacked bar with percentages. Choose "Same scale for every feature" when visitors will compare places, so a small town and a city are drawn against the same axis. Visitors can always open the exact numbers under each chart, and can minimise a chart they do not need. Their browser remembers that choice for the layer. On a map with a time slider, a chart over years follows the slider, marking the selected year as it plays, and clicking a year on the chart takes the whole map there. Give a field a unit, such as people or $, and it appears on the chart and in the popup. Mark where projections start and they are drawn dashed and labelled as projected. Choose "Compare with the rest of the layer" and each chart shows where the clicked feature sits among all the others, with a band for the middle 80% of the layer and its median, so a reader can see at a glance whether this town grew like most towns.

Opening a popup puts it in the address bar, so a copied link opens on that feature, at the same date on a map with a time slider. The link names the layer, the spot, and the feature's heading, such as ?popup=layer-cities/-79.38321,43.65323/Toronto. You can also write one by hand with just the layer and the heading, ?popup=layer-cities/Toronto, and the map finds the feature through search, as long as search is on for the map. A link without a camera position zooms in until the feature is drawn. If the feature is not on the map any more, visitors get a short note and the map opens as usual.

A link can also mark a spot rather than a feature. ?pin=-75.69721,45.42153 (longitude first) puts a pin there, and works beside ?popup= and t. Visitors get one from Copy link to this spot in the map menu, covered in Map menu and measuring.

The map menu

Visitors can right-click the map, or press and hold it on a phone, for a menu at that spot: its coordinates, a link to it, the values of measurement and categorical rasters drawn there, a comment there when comments are on, and a measure tool for distances and areas. You do not need to turn anything on, and nothing visitors do with it changes your map. What each row does is in Map menu and measuring.

Filters

Filters are map-level controls that appear in a Filters panel for visitors. They are the difference between a map people look at and a map people use.

  • A slider filters a vector layer by a numeric property, or sets the visible value range on a single-band raster.
  • A dropdown filters by a category.
  • A toggle shows and hides layers.

Set the minimum, maximum, step, and where the control starts. Visitors move it and the map responds immediately. Their position is not saved back to the map, so the next person still gets your default.

Attribution

Each layer can carry its own credit, shown in the bottom right when that layer is on. Set the text and an optional link on the layer. Leave it empty to use whatever credit is stored on the file itself, which saves retyping the same source on every map.

Collaboration

Viewers can leave comments (Community and above) or draw on the map together in real time (Essential and above). You can also let them download the source files or add layers of their own. Each is a separate toggle with its own audience, covered in Collaboration.

Publishing

Map access is set on the map. The five modes and what they mean are in Sharing and access.

A public map shows every layer on it to anyone who opens it, and a password map does the same for anyone with the password. The files do not have to be public for that, and map access alone does not grant permission to download the source files. When you publish, Sarkoa lists the layers that will be seen outside your organization, so leave off anything that should stay internal. Sharing and access has the details.

Once the map is public, the Custom Maps page gives you both a link and an embed snippet. Putting it on your own site is covered in Embeds.

A map does not have to be public to be printed. Anyone who can open it in the viewer can print it from there, as covered in Printing maps.

Editing safely

Maps carry a revision number. If two people have the same map open and both save, the second save is rejected rather than silently overwriting the first. Reload and reapply your change.

The CLI and MCP expose this as --expected-revision and expected_revision. In the app it is automatic.