Skip to content
GeograficaGeografica

Canvases

A canvas is a saved map on Geografica. It holds everything needed to draw your data: the layers, the maps and charts drawn from them, where each map opens, how they are laid out and the tooltips shown over them. Open a canvas and it is drawn exactly as it was saved, on Geografica or on any website embedding it.

A canvas is made of layers, drawn bottom to top. Each layer reads a dataset of your organization, and how it is drawn follows from the dataset:

Layer Draws Dataset
Choropleth World regions coloured by a value A table of values by region
Fill The polygons of the dataset, filled Geographic, polygons
Line The lines of the dataset Geographic, lines
Circle The points of the dataset, drawn as circles Geographic, points

On top of these, a canvas can draw the region boundaries, the outlines of countries and their subdivisions, under every other layer, and elevation layers, a range of heights or sea depths shaded or drawn as elevation lines, which need no dataset.

A canvas starts from a dataset:

  1. Sign in to geografica.app and open the dataset from the Datasets page of your organization.
  2. Press Create canvas. The button shows on datasets Geografica can draw on a map.
  3. Fill in the form:
    • Name, unique within your organization. It starts as the name of the dataset.
    • Description, optional.
    • Colour by, the column the layer is coloured by, or No column, flat colour.
    • Public canvas, to publish it straight away. It can be changed later, see Publish a Canvas.
  4. Press Create. The canvas opens with one layer over the dataset, and shows in the Canvases page of your organization.

The form does not ask for the layer kind, since the dataset decides it: a table of values by region makes a choropleth, a geographic dataset draws its own geometry.

Open the canvas and press Edit. The edit page shows the canvas beside the forms, split into tabs. Nothing is saved until you press Save: the page lists every change against the saved canvas first, and a tab holding unsaved changes is marked.

The Name and the Description of the canvas.

  • Shape: the width to height of the canvas, from 16:9 widescreen to 9:16 tall. An embed keeps this shape, and so does a canvas showing a single map and nothing else. A map laid out with charts takes the shape of its tile.
  • Opens at: when the layers hold more than one period, the period the canvas opens at. Viewers can move to any other period.

Each layer can be shown or hidden when the canvas opens, and a layer over a dataset sets its colours and its tooltip.

Colour:

  • Colour by: the column the regions or features are coloured by, or a flat colour.
  • Per km²: divides each value by the area of its region, to show a count as a density.
  • Scale: how the values spread over the colours: quantile, linear, square root or log.
  • Midpoint: centres the palette on a value, as a diverging palette expects.
  • Palette: a colour scheme from the d3 colour schemes, many of them from ColorBrewer, and whether its colours run reversed. Distinct hues suit a column of categories and a ramp a column of magnitudes.

Tooltip: whether it shows, whether it follows the pointer or opens on a click, the column that heads it and the columns it lists. Each column takes a label and a format, such as a number, a percentage, a currency, a compact amount such as €18T, a date, a picture or a link built from the value. A number can be multiplied first, for a column stored in thousands or millions. A column can also be marked so a viewer clicks it in the tooltip to colour the map by it.

Press Region boundaries to add the outlines of countries and their subdivisions under the other layers, and Elevation to add an elevation layer, which sets the range of heights it keeps and whether it shades them or draws their elevation lines.

The maps and the charts the canvas draws. A canvas can hold several maps, each drawing every layer on the same timeline:

  • Map: opens where you leave it, so move and zoom it to the view it should open at. Its Projection is a flat map, or a globe that flattens as viewers zoom in. Lock zoom out keeps viewers from zooming out past the view it opens at, or panning outside it; the editor stays free, so you can still reframe it. On a globe viewers can still spin the world. Basemap buttons adds a button for satellite imagery, terrain or both, so viewers can switch the map from its streets; a map shows none unless they are ticked.

The charts each read one layer of the canvas, so a chart and the maps always show the same numbers in the same colours:

  • Bar: the regions ranked by value at the current period, the top ones highest or lowest first, at one level or at every level together. Plots picks the column the bars rank by, the one the map is coloured by or any other number of the dataset, and the bars keep the colours of the map.
  • Time series: the value over every period, one line per region. Click a region on any map to add it to the chart, and click it again to take it off.
  • Tilegram: each region as hexagons in proportion to its value.

The maps and the charts are tiles in the preview. Drag a tile by its title bar to move it, and drag its edge or its corner to resize it. The published canvas and its embed show the same layout, narrowed to fit a smaller screen.

How every tooltip of the canvas looks: following the viewer’s light or dark mode, always light, always dark, the brand accent, or your own background and text colours.

Publish the canvas, or delete it.

A canvas is private to your organization until you publish it, in the Settings tab of the edit page or when you create it. A public canvas can be read by anyone holding its address, without signing in, and listed with the other public canvases.

Publishing a canvas does not publish the datasets it reads, which have a setting of their own. A layer over a dataset which is not public shows nothing to the public, so publish the datasets too.

A public canvas can be put on any website, as on the Choropleth Map page:

  1. Open the canvas on geografica.app and press Embed. Anyone reading a public canvas can embed it, not only its organization.
  2. Optionally set a Height in pixels, between 200 and 2000.
  3. Press Copy and paste the code into your page. Preview opens the embedded map on its own.

The code is an iframe, so there is nothing to install:

<iframe src="https://geografica.app/embed/canvases/402d1e78bfc44b14a09e474dfe98c51d" width="100%" style="border:0;aspect-ratio:1.3333" loading="lazy" title="Population density by NUTS 3 region" allowfullscreen></iframe>
  • Without a height the frame keeps the shape of the canvas at any width. A height fits a fixed slot instead, cropping or widening the map.
  • The embed shows the canvas as it is saved, so later changes reach every page embedding it.
  • A layer over a dataset which is not public is empty in the embed, and the Embed dialog names those layers.
  • A canvas that is made private or deleted shows This canvas is not published in every page embedding it.

Press Delete canvas in the Settings tab and confirm. The canvas is removed for everyone and every page embedding it stops showing the map. This cannot be undone. Deleting a canvas does not delete its datasets.

Canvases can also be created, read, updated and deleted from code, with an API key of your organization. See the canvas operations in the API documentation and the OpenAPI specification. Public canvases are read through the public operations, without a key.