In this article, we will show you, How to Use Google Maps in Tableau with an example.
For this Tableau Google maps demo, we are going to use Sample – Superstore data sources that come with the tableau.
How to Use Google Maps in Tableau
Before we start using the Google Maps in Tableau, let me first create a Symbol Map. To do so, Drag and drop the Postal Code dimension to Details card present in Marks Shelf
Now you can see the auto-generated symbol map.
Let me add Count (Quantity) to Size. It means Circle size will depend upon Number of Orders
How to use Google Maps in Tableau Worksheet
In order to use Google Maps in Tableau, Go to the Worksheet and Select Actions.. from the drop down Menu
Once you select Actions.., below shown window will be opened.
Click Add Action button and select URL.. option
Selecting URL will open the Add URL Action window
- Name: Provide a Valid name
- Source Sheets: Please select the select on which you want to perform this action. I mean Map
- Hover: If you select this option Map will open when you Hover over it.
- Select: If you select this option Map will open when you Select a specified point.
- Menu: Use Menu to open Map
- URL: Pleas specify the URL
We named it as Google Map and using this for Google Maps sheet, and it will run when you select a point. URL you have to use is: https://www.google.com/maps/?q=
Please click the side arrow to select the Latitude and Longitude
As you can see, we don’t have any existing Latitude and Longitudes in both Dimensions and Measures. If your Data source has those things they select them.
How to use Google Maps in Tableau Dashboard
Before we start using Google Maps in tableau Dashboard, let me create a Dashboard first
Next, we added the Google Map that we create previously to this dashboard.
Next, drag and Drop the Web Page from Objects region to Dashboard bottom region.
Dropping a Web Page will open the Edit URL window. Leave it blank or specify default URL name and click OK
Now you can see our Dashboard has One Symbol Map and a Web page
In order to use Google Maps in the dashboard, Go to the Dashboard and Select Actions.. from the drop down Menu
Once you select Actions.., below shown window will be opened. Here, Please click Add Action button and select URL.. option
Selecting URL will open the Add URL Action window. We already explained theses properties in our previous example. Here, We named it as Google DB Map, and it will run when you select a point. URL you have to use is: https://www.google.com/maps/?q=
Please click the side arrow to select the Latitude and Longitude. As you can see, we are selecting the Latitude that was auto-generated by tableau when you add Postal Code to maps.
Similarly, add longitude to the URL. Now the URL will be https://www.google.com/maps/?q=<Latitude(generated)>,<Longitude(generated)>
Click OK to close the window
Let me select Los Angles from Map and you can see the Google Map of the Specified Postal Code. If your Data has the proper address then it will display that building as well.
By selecting the location you can explore the Google Map options like Directions, call etc.
Let me show you the view of the below-shown image
And you can see the City hall
You can also select the Satellite View from this Tableau Google Map
Thank You for Visiting Our Blog