You can add many of the digital maps you find on the web to Gaia GPS. Sometimes, it's as simple as pasting the map URL into Gaia GPS. Not every online map source will work, but if you have one in mind that uses the TMS (tile map service) protocol, you're in luck.
In this article, you will learn how to find the URL for a TMS map source, and how to add that source to Gaia GPS.
If you already have the URL, skip to Step 3.
For this example, we will be using Google Chrome as our browser and the following map source: http://maps.stamen.com/terrain/#3/37.8029/-440.2985
Note: Please make sure to read the map provider's Terms of Service before using a map source in Gaia GPS.
1. Find the URL
1. Open the web page with your desired map in Google Chrome. To follow along with our example, follow this link: http://maps.stamen.com/terrain/#3/37.8029/-440.2985.
2. Zoom and pan the map to the area you are interested in
3. Open the Developer Tools for Chrome:
- Click the three dots in the top right > More Tools > Developer Tools
4. Click the "Network" tab in the Developer toolbar
5. Zoom or move the map to refresh the page. This should populate the text fields in the Network tab.
6. Click one of the .png items in the Name column. Under the "Headers" column you should see a "request URL". It points to an image, so it will end with a suffix you may be familiar with like .png or .jpg.
It will look something like this: http://a.tile.stamen.com/terrain/13/2265/3167.png
7. Copy and paste this URL into a text editor like Notepad or TextEdit.
8. Replace the numbers at the end of the URL with {x}, {y}, and {z}, keeping the slashes ("/") in place.
In our example, the variables will need to be in this order: {z}/{x}/{y}
http://a.tile.stamen.com/terrain/{z}/{x}/{y}.png
Note: you may need to re-arrange these variables for the URL to work
2. Check the URL
1. Go to http://trailbehind.github.io/TilejsonTester/
2. Copy and paste your adjusted URL along with the name and attribution for the map source
3. Click "Update Map"
4. Zoom to the area of the map that you expect to see your map source
If you have created the URL correctly, you will see your source appear in the correct area of the map. Proceed to step 3 below.
If your map source doesn't appear:
- Adjust the zoom levels and update the map.
- Try adjusting the bounds to whole numbers.
- Try changing the order of your variables. Sometimes the {x} and {y} need to be reversed: /{z}/{y}/{x}
3. Import URL to gaiagps.com
1. Go to www.gaiagps.com and open the Map Layers Menu
2. Click "Add Map Layers" at the bottom of the sidebar.
3. Click "Add Custom Source"
4. In the Add Custom Source Menu:
- Name the source
- Paste in the URL you created above.
- Adjust the zoom range. Maps have a minimum and maximum zoom level, usually between 1-19.
- Toggle on "Preview on Map" to see what the map will look like once imported.
- Save your map.
It will automatically be made active on the main map. You can manage this source just like any other map source: Add and Manage Map Sources on gaiagps.com
Once the map has been imported to the website, sync your phone with your web account, and the source will appear in the map sources menu in the app:
If you are unable to import a source on the web, you can import the source directly into the app with the steps below.
Import a TMS map source directly to Gaia GPS app
To import a TMS source into the app you will need to create a TileJSON file. You will need a text editing program to do this.
- iOS: Follow the instructions here to import into Gaia GPS for iOS
- Android: Follow the SD card instructions here to import into Gaia GPS for Android
Note: Please make sure you read the map provider's Terms of Service before using the map source in Gaia GPS.
Comments
1 comment
This article was great. It is probably quite technical for most users, but I was able to add Trailforks to my Gaia account and iOS app.
Trailforks Basemap (Public Mapsource): https://www.gaiagps.com/datasummary/mapsource/e297318d-6c6d-4b9a-bf6d-1a9208566cc2/?layer=5311271E16B0FF38CD8007EF213D23
Trailforks Trails (Public Mapsource): https://www.gaiagps.com/datasummary/mapsource/0554ca50-557d-4710-848d-f41440a90404/?layer=A6B89DBB4B0C5DB2C25431DD6B8FCE
Trailforks Heatlines (Public Mapsource): https://www.gaiagps.com/datasummary/mapsource/65381471-7e0f-443b-a634-47d43664341a/?layer=BCDC08DBA3866B4D0A04B24CBB6604
Article is closed for comments.