Page 1 of 1

Accessing Google map image/URL

Posted: Tue Jun 17, 2014 6:27 pm
by RobertJay

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.


Accessing Google map image/URL

Posted: Tue Jun 17, 2014 7:29 pm
by Kateryna Grynko

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.


Accessing Google map image/URL

Posted: Tue Jun 17, 2014 7:36 pm
by RobertJay

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.


Accessing Google map image/URL

Posted: Wed Jun 18, 2014 1:55 pm
by Evgene Karachevtsev

Hello Robert,

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


Accessing Google map image/URL

Posted: Wed Jun 18, 2014 2:08 pm
by RobertJay

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