Embedding Google Maps in Email | Community
Skip to main content
michaelstancil
New Participant
December 14, 2021
Solved

Embedding Google Maps in Email

  • December 14, 2021
  • 2 replies
  • 14435 views

Hi all,

 

I was curious if anyone has successfully embedded Google Maps within an email. I've read about the landing page embeds, but I assume the email would be similar. Is it as simple as connecting the embeddable files via a script token?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

There’s no need for a webhook (how would you store the binary response?). The Maps service is the src of your img tag.

2 replies

Jo_Pitts1
Community Manager
December 14, 2021

@michaelstancil ,

try this: https://developers.google.com/maps/documentation/maps-static/start

I've not done it, but it is pretty straightforward.

Let me know if you need more help.

Cheers

Jo

 

SanfordWhiteman
New Participant
December 14, 2021

I deliberately said “a service” and not Google’s service because of this part, though 🙂 —

 

 

Signed requests aren’t suitable for email on their own.

 

Jo_Pitts1
Community Manager
December 15, 2021

True enough. 

 

I suppose it depends on OP's volumes. 

 

That having been said, If one doesn't currently exist, it'd be trivial to create a service that held the signing details, took the balance of parameters in the URL, and requested the image from google, and returned the image to the original caller.

 

Cheers

Jo

 

SanfordWhiteman
New Participant
December 14, 2021

Mail clients won’t run JS, period.

 

You can use a service that returns a map-like image based on query params in the URL.