Skip to content

Instantly share code, notes, and snippets.

@chrissyhroberts
Created May 2, 2018 12:46
Show Gist options
  • Save chrissyhroberts/c7949f33eefaf3ab62e10281fd90b733 to your computer and use it in GitHub Desktop.
Save chrissyhroberts/c7949f33eefaf3ab62e10281fd90b733 to your computer and use it in GitHub Desktop.
Export MBTiles files from Open Street Map via Humanitarian Open Street Map export tool
Setting up ODK collect for use with offline maps
https://export.hotosm.org/
Sign up for an account
Describe the data set in tab 1.
In tab 2 select only “MBTiles”
In tab 3 choose the source “OpenStreetMap” and set zoom range to 1-14
In the map viewer, navigate to your region of interest.
Click the ‘Draw’ button, then hold down the SHIFT key and draw a polygon around the area to be downloaded.
In tab 4, click the “Create Export” button.
When you job is done, you will receive an email and will be able to download the .mbtiles file.
Copy this file in to a subfolder of the odk/layers folder on the Android devices you will be using. Name the folder appropriately (i.e. odk/layers/Laos).
To use the offline map in ODK, select the layers button (looks like two overlapping squares) from the map viewer and select the map to use (i.e. Laos). You will now see the OSM map superimposed over the original map and this will be accessible offline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment