Embedding Google Maps in emails

Adding Google maps to emails is not something I ever wanted to do but luckily Google have Static Maps API V2 for when you need maps without requiring JavaScript or any dynamic page loading (something email clients don't handle well).

Calling the maps is easy, in short its a link with some params i.e. https://maps.googleapis.com/maps/api/staticmap?{params}. By simply specifiying where to center the map, zoom level, and even the size of image to generate you can quickly get a map view.

google map of london


You can even take this further and add in markers by specifying size, colour, label, and location.


This just scratches the surface, Check out the URL params, and the site in general to see what else you can do

comments powered by Disqus