Loading

Error "www.google.com refused to connect" Or “The Google Maps Embed API must be used in an iframe” Embedding Google Maps As a Web Page Object

Julkaisupäivä: Feb 24, 2026
Kuvaus
When embedding google maps as a web object in workbooks, the following errors may occur: 
 
The Google Maps Embed API must be used in an iframe
 
When accessing a published version of the workbook, the below errors may occur:  

www.google.com refused to connect

Or
 
Refused to display 'https://www.google.com/maps?...' in a frame because it set 'X-Frame-Options' to 'sameorigin'

Cause

The Google servers are interpreting the dashboard holder that contains the URL for the Google map as a Frame within a site and therefore they are blocking the rendering of the map. 

Tableau Desktop requires an Iframe when showing the maps. On Tableau Server it generates it's own Iframe so if published with the Iframe originally it fails
Ratkaisu

You must include the Iframe as well as adding  "&output=svembed" parameter at the end for the Google Maps URL:
 
https://www.dataplusscience.com/iframe.html?url=https://maps.google.com/maps?q=40.5509,-105.0668&output=svembed

For Tableau Server, You cannot include an Iframe, like below

 https://maps.google.com/maps?q=40.5509,-105.0668&output=svembed

(Rather than https://www.google.com/maps/?q=40.5509,-105.0668)

Lisäresurssit
For additional information about this topic, see the following documentation: 
Knowledge-artikkelin numero

001471883

 
Ladataan
Salesforce Help | Article