Skip to main content
Solved

Add a map image to an email without google map api key

  • August 18, 2020
  • 2 replies
  • 108 views

pauldowlling
Contributor
Forum|alt.badge.img+4

How can I add a map image to an email.

I have a lat long coordinate. I do not have a google maps api key so google maps is out of the question. Any tips would be really appreciated.

Best answer by hansgm

Hello

You can use a Imagefetcher Transformer

 

You can get a static map with the following Image URL:

http://osm-static-maps.herokuapp.com/?height=600&width=600&center=2.29469,48.8583&zoom=20&attribution=© OpenStreetMap-Contributors

 

Options for the URL can be find here

https://github.com/jperelli/osm-static-maps

 

More static maps are documented here

https://wiki.openstreetmap.org/wiki/Static_map_images

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+61

Do you need global coverage? If so, I think there's some OpenStreetMap WMS services you could use to get static images from and embed those.


hansgm
Contributor
Forum|alt.badge.img+6
  • Contributor
  • Best Answer
  • August 18, 2020

Hello

You can use a Imagefetcher Transformer

 

You can get a static map with the following Image URL:

http://osm-static-maps.herokuapp.com/?height=600&width=600&center=2.29469,48.8583&zoom=20&attribution=© OpenStreetMap-Contributors

 

Options for the URL can be find here

https://github.com/jperelli/osm-static-maps

 

More static maps are documented here

https://wiki.openstreetmap.org/wiki/Static_map_images