How to use Google Maps in Google Data Studio
Yesterday Google Data Studio launched a cool new feature – Google Maps as a chart type! This is major game changer for Data Studio and opens up a lot of possibilities.
There are a lot of BigQuery public datasets featuring geographic data that it was simply not possibly to display on the existing geo maps. This changes with the Google Maps integration.
Note: Google Maps cannot yet be displayed in embedded reports.
Please note that currently Google Maps cannot be displayed in reports embedded on website pages.
So you’ll need to view the report in Google Data Studio. Click the ‘Google Data Studio’ button in the bottom right corner of the report and open the report in Google Data Studio.
I’ll cut to the chase and show you a Data Studio report with a Google Map embedded. This map shows the number of pageviews in cities across the world.
Looking at the different options for displaying data in the Google Map
So at the time of writing, it is only possible to display data as Bubbles and not Areas. You can choose a geographic field to be the Dimension. In this case I’ve used Town/City. It’s also possible to add an additional Tooltip to each Dimension.
For the metrics you can choose to have a Bubble Size and Bubble Colour represent different values. In my case I’ve chosen size to equal the number of users and colour to indicate the number of page views.
Different Map options for Google Maps in Data Studio
I’ll give you a run down of some of the map styling options available at the launch of Google Maps.
The two main choices are whether to go for a Satellite map or a regular Map.
Within these two options there is plenty of scope for customization.
Below is a regular Google Map in Data Studio.
And here is a satellite Google Map in Data Studio.
You can also adjust various settings to get a map that you want.
For example, for the map below I’ve selected a regular Map type, and then turned off streets, landmarks and labels.
So we don’t see country names, borders or any road networks.
There’s also the option to add a custom JSON file
This gives users the option to create or import their own custom Map Styles which opens up a huge number of possibilities!
Looking at the Level of Detail available in Google Maps
A great feature of these maps is the level of detail that’s possible. So below I’ve zoomed in on Cape Town, South Africa. As you would in a regular Google Map you can drag the little yellow man to wherever you’d like to take a look at the view!
And lo and behold we can access the Street View in Data Studio itself. Below is a view of Table Mountain as seen from Signal Hill.
Even without using Street View, you can zoom in as much as you can in regular Google Maps. That is to say a lot! Below is a screenshot of a Google Map fully zoomed in.
Using Bubbles to Display Data Points on the Map
Currently the only way of displaying data is using Bubbles, and not surface area. At the time of writing there is a maximum of 10,000 bubbles that can be made visible on a map.
A note about the 10,000 bubble limit. From the Google Maps Support information:
Maximum data limit:
- 10,000 bubbles for Latitude, Longitude fields.
- 1,000 bubbles for other geographic field types.
It’s also possible to use colour to categorize bubbles by a dimension. Below is a map showing users by Town/City with each bubble’s country categorized by colour.
Filtering by Country, Region and City
It’s also possible to use another chart or table to filter your Google Map. In the example below I have a Google Map on the left and a Geo Map on the right. If I click South Africa on the Geo Map then the Google Map switches to a view of only South Africa.
This is also possible with regions. Below I’ve selected England as a region within the United Kingdom and the map has focused in on England.
And this is also possible to do with cities. Below I’ve selected to filter Sydney Australia and the map has zoomed in on Sydney.
Creating a custom field to avoid ambiguous location names
So one issue you might encounter is needing to differeniate between two different cities with the same names. For example, to avoid confusion between London, Ontario and London, England.
You can do this by creating a custom field using the CONCAT function. I used the formula CONCAT(Town/City,”, “,Country) to create this new field.
You can choose this new dimension to have the geographic data type of ‘Town/City’.
Now you can have a single field that corresponds to the exact geographic location. Now we can make sure we’re looking at Paris, France and not Paris, Texas.
There’s a lot to take in with this new update and I hope you found this article useful and are excited to get started using Google Maps in Google Data Studio!
Update: Filled Area Google Maps available
As of August 2020 you can now display data as a filled area in your Google Map. This is useful if you want to show data by Country or Region. Shown below is a map of the US and Canada displaying data by Province / State.
Download Google Data Studio Templates
If you’d like to download one of my Google Data Studio reports as a template to use for your own data, you can visit Data Studio Templates and purchase one.
My Other Blog Posts
If you liked this post you might enjoy some of my other blog posts.
It’s sounds good we will try to my website for tracking more advantages of google analytics.. Thankyou so much to sharing valuable information with us..
Glad you liked it!
Good stuff, thanks!
How connect Geo Map and Google Maps. Please could you explain a little more how do you connect it? I have try with no success
Ok, Now I have noticed how to do that. You have to activate “Interactions” / Apply filter at the bottom of the map properties.
Ok, glad you managed to figure it out!
Not really sure what to do with pubic datasets…
Haha Whoops – thanks for pointing that out! 😀
how I add more dimensions to the map, it only allows me to add one. I can concatenate and generate a large paragraph, but generally the tag is small and the words are lost in its margins
Hi, is there a way in which I can create fixed-size circles to display in the map? I know I can create a constant dimension and bubbles will be all the same size, but then I want those bubbles to be exactly 3km radio and stay constant. But what happens is that the bubbles increase/decrease size when you zoom in/out (as size is a comparative measurement). I need this to see if some points in my map are overlapping in a 3km radio. Is there a way to do this?
Hi Facundo, good question. At the moment I don’t think there is a way to make them a fixed size unfortunately.