Integrate Mapbox with Tableau
You can integrate you Mapbox maps with business intelligence tools like Tableau. This tutorial walks you through adding your Mapbox style to your Tableau visualization.
Getting started
Maps styled with the Mapbox Studio style editor or Mapbox Studio Classic can be added to Tableau 10.2.2 as background maps. To complete this tutorial, make sure you have the latest version of Tableau (10.2.2 or higher). If you are using a version lower than Tableau 10.2.2, please refer to this section. Additionally, you will need a map style created with the Mapbox Studio style editor.
Add a map made with Mapbox Studio
In Tableau, click Map > Background Maps > Map Services to open the Map Services dialog box.
In the dialog box, click Add > Mapbox Maps
In Mapbox Studio, navigate to the Styles page and click the Share & use button next to the style you would like to add to Tableau.
When the Share & use modal opens, switch to the Use tab. Click the Third party option, and toggle to Tableau. Copy the URL by clicking the clipboard icon.
Back in Tableau, give your style a name in the Style Name field (this can be whatever you like). Then paste the Integration URL you copied in the previous step into the Url field. The API access token, Username, and Layer ID fields will be populated automatically. Click OK.
Add a map made with Mapbox Studio Classic
In Tableau, click Map > Background Maps > Map Services to open the Map Services dialog box.
In the dialog box, click Add > Mapbox Maps
In the next dialog box, select the Classic tab, then choose a style name (this can be whatever you like) and enter your access token in the API access token field. You can choose to use a preset style or use a map from your Mapbox account.
To use a preset Style, choose one of the options available in the Mapbox preset style dropdown and click OK.
To add a custom style, click the Custom (with one or more layers) radio button in the Add Mapbox Map dialog box, enter one or more Classic map IDs, then click OK.
Access maps
You can access the Mapbox maps you've added to Tableau by clicking Map in the menu bar, then selecting Background Maps.
Troubleshooting
Changes to your styles are not appearing in Tableau
If changes made in the Mapbox Studio style editor orMapbox Studio Classic are not being updated in Tableau, try clearing the desktop cache in Tableau.
- On Windows, delete everything in the MapTiles folder usually found at
C:\Users\your-username\AppData\Local\Tableau\Caching\ExternalCacheV1\MapTiles
- On Mac, delete everything in the MapTiles folder usually found at
/Users/your-username/Library/Caches/com.Tableau.caching/ExternalCacheV1/MapTiles
Mission accomplished
Now that you've added your map to your Tableau workbook, the rest is up to you! You can modify your map style in Mapbox Studio and your changes will be reflected in your Tableau workbook the next time you open it. For more information, visit Tableau's help page for adding and managing map layers.