I have done a good amount of research and have found several "solutions" such as the static maps API and simply sending a link to a Gmap. However is there really no way to actually send someone a Google Map?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- How do you change the color of the dotted line on
You can create a static image map and send it by email, doing it in Perl: https://metacpan.org/pod/Geo::Google::StaticMaps::V2
or simply directly by Google: https://developers.google.com/maps/documentation/static-maps/
It should be something like this in HTML part of the e-mail:
I have just tried it out and it works like a charm.
Sample code:
You can send a link that includes map parameters (Lat,Lgt.. etc) with e-mail to an HTML page on your server which accepts parameters for the map with REST apis and display the full map in browser.Otherwise the only choice is to use the static map concept.Or both can be used , Send the static map image and below that a link to the HTML page which accepts the parameters, prepares map and diplays the real map if user prefers.
Well your own research shows that most mail clients don't do iFrames, so what do you think can be done?
This is on purpose by the way. iFrames and JavaScript are security risks that mail services don't want to deal with.
Your best bet is to get a static image of the map and embed it as an image in an HTML email. Put a hyperlink on it to the "full" map on Google Maps.
To do this manually in Gmail:
href
of the anchor in the section "Map with link to Google Maps"