RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Accessing Google map image/URL

My app displays a Google map with a marker showing a specific location. I would like to add the actual map image and/or the URL of the map to a SendGrid email. Is there a property or file name I have access to via JavaScript that can be used? Thanks very much.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Accessing Google map image/URL

Hi Robert,

Here is how to get coordinates of map center:prevar latitude = Apperyio("googlemap_2").gmap.center.k;
var longituge = Apperyio("googlemap_2").gmap.center.A;/preThen you can pass them in any format you need.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Accessing Google map image/URL

Thank you Katya - but I already know how to do that. What I need is to access either the resulting map's image or URL so I can include them in an email.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Accessing Google map image/URL

Hello Robert,

Could you please try to pass static googlemap in email. You may find more information here: https://developers.google.com/maps/do...

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Accessing Google map image/URL

That is extremely helpful and should do the job precisely. Thanks a million and have a good day.

Return to “Issues”