The Contour map board allows you to visualize and interact with your geospatial data.
These map visualizations are comprised of two types of layers:
The map board supports map rendering with MapboxGL ↗. If WebGL is not supported in a user’s browser, the map board will render with Leaflet ↗.
Check whether or not your browser supports WebGL by visiting the WebGL website ↗.
The map board uses Mapbox as the primary source for its base map imagery. To learn more about web map technology, see the Mapbox documentation ↗.
In the map board, overlay layers (referred to as “layers” in the interface) represent data as points or shapes on top of a map’s base layer. The map board contains the following types of overlay layers:
Currently, static layers (which are commonly used in Workshop maps) are not supported in the map board.
Point layers use points or markers to represent individual objects on a map, plotted by a latitude/longitude pair. The color, icon type, and size of the points can be styled.
For configuration information, see the configure point layers section below.
Example: A map showing Airbnb locations in the Lower East Side neighborhood of Manhattan, colored by the room type. The map uses open source data from Inside Airbnb ↗.
Cluster layers are ideal for large sets of data containing latitude/longitude pairings. Clusters are similar to points, but instead of plotting a single marker per object, the objects being plotted are aggregated based on their geographic proximity into clusters. The size and/or color of the cluster is configurable to represent the number of data points within a given area.
In addition to the number of data points (which is a count aggregation), the cluster layer supports a number of different aggregation functions, such as the sum or average of a different column in the dataset.
For configuration information, see the configure cluster layers section below.
Example: A map showing the distribution of Airbnb prices in Manhattan. Cluster size/colors are based off of the average price in the given area.
The choropleth layer displays regions (such as countries or provinces) that are colored based on some column value or aggregation over column values of rows represented by that region. This provides a way to visualize variation or patterns across different regions, with the option of seeing how those values change over time.
For configuration information, see the configure choropleth layers section below.
Example: A map of the continental United States, with each state colored according to the percentage of its total population that is fully vaccinated as of December 13, 2021.
Line segment layers plot individual rows as a line segment connecting two points. Points are defined by a latitude/longitude pair.
For configuration information, see the configure line segment layers below.
Example: A map of the United States, with line segments that start in the center of each state and end in California. The line segments are colored according to their distance from California.
Below is an image of a newly added and not yet configured map board. By default, a point layer with its data source set as the Current set will be added to the board.
At the top of the configuration panel are a set of tabs: Data and Format.
The data tab contains an Add layer button at the top and a collapsible section for each overlay layer that is shown on the map.
Clicking the Add layer button at the top of the section will add a new layer (defaulting to a point layer) to the map and will collapse all other sections.
The Data source represents the dataset or Contour path that the layer will use to display data and compute aggregations. By default, the Current set is selected for this option which will use data from the current Contour path.
Other options for the data source include other paths in the same analysis, or a different Foundry dataset.
The Map Type can be changed to configure a different type of layer. The different options for these layers are point, cluster, choropleth, and line segment, as described above.
For the point layer, the main configuration options are as follows:
For the cluster layer, the main configuration options are as follows:
For additive aggregations (count or sum, for example), the map board will supercluster existing clusters. This means that clusters will automatically adjust as you zoom in and out of the map so that an appropriate level of cluster granularity will be shown for the current zoom level.
To configure a choropleth layer, you must first specify the Choropleth type. This corresponds to the source for the boundaries that will define the regions that are shown. Currently, the map board supports the following choropleth types:
The configuration options for the layer itself differ based on the choropleth type selected:
Additionally, choropleth layers support different types of color configurations:
To configure a line segment layer, you must first specify the Line segment type. This will specify how lines should be drawn on the line layer. Currently, the following options are supported by the map board:
Additionally, line segment layers support different types of color configurations:
The format tab contains general formatting information for the map.
Map theme: Corresponds to the style of the base layer of the map. These options are provided by Mapbox. The default map theme is the light theme ↗. Other options include the following:
Viewport: Specifies the viewport of the map when initially loading the map, or when updates are made that cause the map to re-render points.
Legend: specifies options for the map legend.
The map board supports many filtering options which differ by layer. Note that filtering is only enabled when the Data source option is set to the Current set. Multiple filters on the map will be unioned together (OR filters) rather than intersected.
Example: A point selection and a radial filter drawn on a map. The corresponding filter reads: “keep rows where (latitude = 40.80826 and longitude = -73.93401) OR latitude, longitude is within 0.2969 km of 40.8081, -73.94189)”. The first filter corresponds to the point selection, and the second filter corresponds to the radial filter.
Filtering is not currently supported on the cluster layer.
.
Example: A selection made on a Mapbox choropleth layer. The selection creates a filter, which reads: “Keep rows where feature_id = 332521”. feature_id is the column provided as the “Region ID column”, and 332521 is the Mapbox feature id corresponding to the selected shape (California).
Example: A selection made on a line segment layer. The selection creates a filter, which reads: “Keep rows where (Latitude = 38.5 AND end_Latitude = 36.778259 AND Longitude = -98 AND end_Longitude = -119.417931).”
The map board supports the drawing of shapes on the map. These can be accessed by the buttons in the top left corner of the map, which are visible when hovering the cursor over the map:
The following options are supported for drawings:
For filtering purposes, the circular filter uses the Great Circle projection, which generally gives distances between points on the surface of the Earth correct to about 0.5%. However, better accuracy is possible (and generally expected) when applying the projection to a small area. Learn more about the Great Circle projection. ↗
You may notice that your drawn polygon creates two filters instead of one. This will occur for polygons that are intersected by the antimeridian ↗; for filtering purposes, the polygon will be split across the antimeridian.
Draw line: Allows the drawing of a line on the map. Lines are for display purposes only and will not create a filter on the map. Follow these steps to draw a line:
Remove drawn shapes: Allows users to remove the drawn shapes on the map. If removing a circle, the corresponding filter(s) will be removed. Follow these steps to remove shapes: