By default, Tableau uses default Maps to display the spatial data. However, you have an option to use your own Background Maps. In this article, we will show you how to use Mapbox Maps as a Background Map in Tableau with an example.
For this Tableau Mapbox Maps demo, we created two sample styles in our account. If you want, you can use the default Mapbox styles
For this Tableau example, we are going to use Sample – Superstore data sources that come with the desktop.
How to Use Mapbox Maps as a Background Map in Tableau
Before we start using Mapbox Maps as a Background Map, let me first create a Symbol. To do so, Drag and drop the Postal Code dimension to the Details card present in Marks Shelf
Now you can see the auto-generated symbol map.
Let me add City to Details card and Count (Quantity) to Size. It means Circle size will depend upon the Number of Orders
To use Mapbox Maps as a Background Map in Tableau, Go to the Map, select background Maps and then select Map Services… from the drop-down Menu
Selecting Map Services… will open the Map Services window. Please click Add… button and choose the Mapbox Maps.. option. Please refer WMS Server as a Background to understand the WMS Servers.. option
Select Tableau Mapbox Maps.. option will open Add Mapbox Map window
- Style Name: Please specify a valid style name.
- URL: Specify the URL where your Mapbox map is present.
Please go to the Mapbox website and Go to the Style section. Next, select the style that you want to use, and select Share, develop & use from the Menu
It will navigate you to a new page. Please copy the Code under the Use Style in GIS Apps section. Remember, don’t forget to select Tableau
Pasting the URL will automatically add the API Access Token, Username, and Layer ID. Click OK to close the window
Click Close button
Now you can see that our default Map was replaced by the Satellite map that we created in Mapbox.
If you want to check which Background Map is used currently, Go to the Maps -> Background Maps. You can see it is using NewRoadMap instead of the tableau.
You can Zoom any particular location of the Mapbox Maps as a Background Map in Tableau.