Export Map

Giuseppe Macrì
Published in
4 min readJul 23, 2019


Developed by Uber and contributed to the LF Urban Computing Foundation, is an open source geospatial analysis tool for large-scale data sets.

I previously posted two articles where I described some of the application features. Both articles are the following:

In this article we are going to describe the export map feature in

Let’s create a simple map

In order to export our map, you first need to create a map. website has some predefined maps:

The new map will look like the screenshot below, showing all California earthquakes over the past 40 years.

California Earthquake Map

Once you are happy with the map and all the layers you can create on it (user guide), let’s move on to exporting the current visualization by clicking on the share button (top left corner),

Highlighted Share Button

upon clicking the Share button, you will be provided with a list of options as shown below.

Export Options

Click on Export Map.

After clicking on Export Map, will show a modal dialog where you can select the format of your exported map. As shown in the following screenshot

Export modal dialog provides two different options:

  • HTML: create a single HTML file of your map with data and configuration.
  • JSON: create a JSON file with your current map data and config. You can later load it back to

Export Map as HTML

The default export map option is HTML, see HTML export modal dialog image. As part of HTML export options, you can provide a Mapbox token to be saved in the HTML file.

If you don’t provide a Mapbox token, will use a temporary one which can expire later. We recommend to use your own Mapbox token.

If you don’t have an access token when you export the map, you can always create a new token and update the generated HTML file later one when necessary.

Data and configuration will be inlined in the single HTML file. You can use it as a static page and share it with other people.

Export to html

The generate HTML file can be pretty big since it contains all map data.

Export Map as JSON

JSON is the second available option to export your map. Once you click on JSON button, will show the following modal window.

Export JSON Map

The lower part of the modal dialog shows the current map configuration.

The map configuration is coupled with loaded datasets; each part of the configuration will contain a dataId which will refer to one of the loaded datasets.

Once you click on Export, will create a JSON file containing both map configuration and data. The newly generated file can be used to recreate our original map. See below

Export to JSON

The generate JSON file can be pretty big since it contains all map data.


In this post we reviewed the export map functionality to create an HTML or JSON file.

HTML export can be really useful if you want a static representation of our map to include on your website, share it with other users or visualizing it offline on our computer.

JSON is a lean representation of our map and the file can be stored in a CDN, share with other people and load it later to reproduce the exact same map.

Exporting map and data is part of the core abilities provides and we are continuing working on improving and adding new features.

If you want to know more about export features, check the user guides.