Skip to main content
michaelstancil
Level 3
Dec 14, 2021 8:22 PM UTC
Solved

Embedding Google Maps in Email

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Dec 15, 2021 9:13 PM UTC

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

20 replies

SanfordWhiteman
User Group Leader
User Group Leader
Dec 14, 2021 8:58 PM UTC

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.

Translate
Jo_Pitts1
Community Advisor
Community Advisor
Dec 14, 2021 11:17 PM UTC

@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

 

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Dec 14, 2021 11:58 PM UTC

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.

 

Translate
Jo_Pitts1
Community Advisor
Community Advisor
Dec 15, 2021 12:07 AM UTC

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

 

Translate