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

Showing the location of photos in a Piwigo gallery using OpenStreetMap

0

I just set up a Piwigo (http://piwigo.org/) instance on my shared server account to store photos with. I really would like the ability to show viewers on a map where the photos were taken. Piwigo has extensions that use Bing (http://piwigo.org/ext/extension_view.php?eid=603) and Google (http://piwigo.org/ext/extension_view.php?eid=122) but I was wondering how I could use OpenStreetMap or OpenStreetMap data to do something similar.

asked 18 Dec '12, 23:07

XinJeisan's gravatar image

XinJeisan
11112
accept rate: 0%


One Answer:

2

In principle there is no problem using the tiles served by OSM as a background on a low volume site, you will naturally need to provide attribution (see https://www.openstreetmap.org/copyright ). If you expect more than a trivial amount of traffic you should either arrange for such a service from a commercial map tile provider or set up your own tile server (see switch2osm.org ).

To actually display the tiles you will need to code or extend a Piwigo plugin, but I suspect that you can reuse code from either the google or bing one.

answered 19 Dec '12, 22:58

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 20 Dec '12, 12:59

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

Source code available on GitHub .