How to Embed a Google Map in Tableau

Cody Schneider8 min read

While Tableau’s built-in maps are great for many geographic analyses, sometimes you need the rich detail and familiar interface of Google Maps. Embedding a live, interactive Google Map directly into your Tableau dashboard lets your audience use features they already know, like Street View and high-resolution satellite imagery. This tutorial will walk you through the entire process, step by step.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Use Google Maps In Your Tableau Dashboard?

Tableau's mapping capabilities are powerful, but they serve a primary purpose: visualizing data layers geospatially. Google Maps is designed for exploration and navigation. Combining them gives you the best of both worlds.

Here are a few key advantages of embedding Google Maps:

  • User Familiarity: Nearly everyone has used Google Maps. Your dashboard viewers won't need any training to pan, zoom, or switch between map and satellite views. This instantly makes your dashboard more accessible and user-friendly.
  • Street View Integration: This is the biggest draw for many users. Embedding Google Maps allows you to provide on-the-ground context for your data points. Imagine analyzing retail store locations and being able to instantly drop into Street View to see the storefront and surrounding area — all without leaving your dashboard.
  • High-Resolution Satellite Imagery: Google's satellite and aerial imagery is constantly updated and often provides more detail than standard map backgrounds. This is invaluable for analyzing property, infrastructure, or environmental data.
  • Route and Traffic Information: While not a direct visualization on the dashboard, a user can click "View larger map" to quickly jump to the full Google Maps interface to get directions or check traffic to a selected location.

The Key: Understanding Tableau's URL Actions

The magic behind this integration isn't a complex plugin or API call. It's a native Tableau feature called a URL Action. A URL Action lets you create a link to an external web page that is dynamically updated based on the data you select in your dashboard.

Here’s how it works for our specific goal:

  1. We'll build a simple worksheet in Tableau that plots our locations on a map (or even just in a list).
  2. We'll add a Web Page object to our dashboard. This is the container where Google Maps will be displayed.
  3. We'll then create a URL Action that tells Tableau: "When a user clicks on a data point in the worksheet, take its latitude and longitude and construct a specific Google Maps URL. Then, load that URL in the Web Page object."

Every time you click a new location, the URL action fires, and the embedded map updates instantly. It’s a simple yet incredibly powerful technique.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 1: Get Your Geographical Data Ready

Before you even open Tableau, you need data with geographical coordinates. For this method to work best, your data source (whether it's an Excel file, a database, or a Google Sheet) should contain two distinct columns:

  • One column for Latitude
  • One column for Longitude

Make sure these are formatted as numeric data types (e.g., Number (decimal)). Here’s a simple example of how your data might look:

Even if you only have addresses, don't worry. There's an alternative method covered in the "Advanced Tips" section below. But having latitude and longitude from the start is the most precise and reliable approach.

Step 2: Build the Trigger Worksheet in Tableau

First, we need a simple view that users can interact with to select a location. This can be a map, a list, or even a bar chart. For this guide, we'll create a basic dot map to act as our selector.

  1. Connect to your data source in Tableau.
  2. In the Data pane on the left, make sure Tableau has correctly identified your Latitude and Longitude fields with a small globe icon. If not, right-click each field, go to Geographic Role, and assign the correct role (Latitude or Longitude).
  3. Drag the Longitude field to the Columns shelf.
  4. Drag the Latitude field to the Rows shelf.
  5. You should now see a single point on a map. To separate this into individual points for each location, drag an identifying field like Store Name or Store ID onto the Detail icon in the Marks card.

You now have a simple map worksheet. Name it something clear, like "Location Selector Map." This sheet will serve as the controller for our embedded Google Map.

Step 3: Assemble Your Dashboard and Add a Web Page Object

This is where we bring everything together.

  1. Create a new dashboard by clicking the "New Dashboard" icon at the bottom of the Tableau window.
  2. From the Sheets list on the left, drag your "Location Selector Map" worksheet onto the dashboard canvas.
  3. Next, look at the Objects panel at the bottom left. Find the Web Page object and drag it onto the dashboard canvas, positioning it next to your map.
  4. A dialog box will pop up asking for a URL. Leave it blank for now and click OK. This creates an empty frame that our action will populate later.

Your dashboard should now show your Tableau map on one side and an empty white box (the Web Page object) on the other. Now it's time to connect them.

Step 4: Create the Dynamic URL Action

This is the final and most important step. We'll create the action that listens for clicks and sends coordinates to the Google Map URL.

  1. With your dashboard active, go to the top menu and click Dashboard > Actions...
  2. In the Actions window, click the Add Action > button and choose Go to URL... from the list.
  3. This opens the URL Action configuration window. Let's configure it piece by piece:
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Configure the URL Action Window

  • Name: Give the action a descriptive name. Something like "Update Google Map" is perfect.
  • Source Sheets: Ensure only your "Location Selector Map" (or whatever you named your trigger worksheet) is checked. This tells the action to only run when you interact with that specific sheet.
  • Run action on: Choose Select. This makes the action fire when a user clicks on a data point on your map.
  • URL: This is where we build the dynamic link. In the text box, type the base Google Maps URL, followed by the placeholders for your data. A great URL to start with is:
https://maps.google.com/maps?q=<Latitude>,<Longitude>&z=15

To insert the <Latitude> and <Longitude> fields, don't type them manually. Instead, click the small arrow icon (Insert) to the right of the URL box and select the corresponding fields from your data source. Tableau will automatically insert the correct placeholder syntax.

Breakdown of the URL:

  • https://maps.google.com/maps?q=: Tells Google Maps to perform a query for what follows.
  • <Latitude>,<Longitude>: Tableau will dynamically place the coordinates of the location you click.
  • &z=15: Sets the default zoom level. 1 is the whole world, and 20+ is extremely zoomed in. A value of 15 is a good starting point for viewing city blocks. You can adjust this number to fit your needs.

After building your URL, click OK twice to close both dialog boxes.

Test Your Interactive Dashboard

You're all set! Go back to your dashboard and click on any of the data points on your Tableau map. You should see the Web Page object instantly update to show that exact location in an interactive Google Map. You can now zoom in, switch to satellite view, or even open Street View — all within your Tableau dashboard.

Advanced Tips and Tricks

Want to take it a step further? Here are a few ways to customize your Google Maps embed.

1. Default to Satellite View

If you want the map to automatically load in satellite view, just add the &t=k parameter to your URL string.

https://maps.google.com/maps?q=<Latitude>,<Longitude>&z=15&t=k

2. Link Directly to Street View

For the ultimate on-the-ground view, you can have your action open Street View directly. The URL structure is slightly different for this.

https://maps.google.com/?layer=c&cbll=<Latitude>,<Longitude>
  • layer=c: Activates the Street View layer.
  • cbll=: "Camera bearing lat/long," which sets the camera position.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

3. Using Addresses Instead of Coordinates

If your dataset only contains street addresses, you can still use this method. Google Maps is excellent at geocoding addresses on the fly. Simply construct your URL to pass the address fields.

https://maps.google.com/maps?q=<Street_Address>,<City>,<State>

Insert your address component fields just as you did with latitude and longitude. While this is very convenient, be aware that results can sometimes be ambiguous if addresses aren't perfectly clean. Using coordinates is always the most precise method.

Final Thoughts

Integrating Google Maps into your Tableau dashboards using URL Actions and a Web Page object is a straightforward way to enhance your geographical analysis. It adds a layer of interactivity and contextual detail that empowers your users with familiar, powerful tools like satellite imagery and Street View that aren't natively available.

While techniques like this in Tableau are powerful, they still involve several manual setup steps within the tool. We created Graphed because we believe getting insights from your data should be faster and more intuitive. By connecting your data sources, you can create reports and dashboards just by asking questions in plain English. Instead of building URL actions and embedding objects, you can simply ask, "Show a map of our sales by zip code," and get an interactive visualization in seconds, freeing you up to focus on the story your data is telling.

Related Articles