This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Is it possible to add OpenstreetMap button on our websites?

0

I have an online store and an articles related website. I just want to increase the satisfaction level of my customers by adding my office address location with the map. When they click on the map button then my webpage redirects to OpenStreetMap and shows the exact location. I just want it on some pages of my website. I want it on the most important page and the best article. kindly tell me is it possible? if yes then please guide me on how would I do this? Thanks :)

asked 21 Jan '21, 13:45

Ashstyles's gravatar image

Ashstyles
41447
accept rate: 0%

edited 21 Jan '21, 13:56

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273


One Answer:

3

The "share" button on the OSM web site lets you generate links like this which would be a good target for such a button: https://www.openstreetmap.org/?mlat=51.5072&mlon=-0.1355#map=15/51.5072/-0.1355

answered 21 Jan '21, 13:58

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .