Announcement

  •  » Requests
  •  » OpenStreetMap support request

#1 2013-01-03 20:27:38

Fabian Rodriguez
Guest

OpenStreetMap support request

Hi,

I'd like to suggest displaying a map of a picture's location with OpenStreetMap (assuming it has geolocation metadata) as a default feature in Piwigo.

Here is an example of such integration in MediaGoblin:
http://gobblin.se/u/magicfab/m/bernard-ouest/

This was also asked on OpenStreetMap help:
https://help.openstreetmap.org/question … nstreetmap

It's also briefly discussed (in French) in these forums/blogs:
http://linuxfr.org/news/piwigo%C2%A023#comment-1277087
http://fr.piwigo.org/forum/viewtopic.php?id=16399

 

#2 2013-05-30 20:40:47

Fabian Rodriguez
Guest

Re: OpenStreetMap support request

I posted the above message a few months ago and last week someone contacted me directly asking for code examples and more information.

After a brief exchange this person produced a working plugin for OSM support in Piwigo!

I can't test this right now, but here it is!
http://piwigo.org/ext/extension_view.php?eid=701

If you have a Piwigo site with a working example of this, please post it in this thread :)

 

#3 2013-05-30 22:22:31

pewe
Member
2012-03-16
439

Re: OpenStreetMap support request

Can be seen here

- http://uko.com/photos/picture.php?/2556/category/41 (Geotag embedded in photo)
- http://uko.com/photos/picture.php?/1994/category/31 (Geotag in database added using Batch Manager)

Using Piwigo V2.5.1 - I have not extensively tested all options but it seems to work and is useful.

Last edited by pewe (2013-05-30 22:24:06)

Offline

 

#4 2013-05-31 04:58:41

pewe
Member
2012-03-16
439

Re: OpenStreetMap support request

OK - 2 problems

1 - I do not see the map unless I am logged in - does not seem to work for a guest, and I can't see where there is a setting for this.

2 - No matter where I choose to position the map, it always appears in the same place - before 'Who can see this photo'.

Offline

 

#5 2013-05-31 13:43:18

pewe
Member
2012-03-16
439

Re: OpenStreetMap support request

OK - correction to my previous comment.

When using the plugin be aware that

- although in the admin panel the position is chosen as being AFTER the one chosen in the drop down list, it does in fact place the map BEFORE it.
- Make sure that the position you choose for the map is set in Display options to be visible and does exist.
[For example the 'Who can see this photo' option is only available to Admin, so choosing this will make the map invisible to everyone but admin, and choosing something like 'Date Taken' will hide the map for any photos where there is no 'Date taken' in the Metadata (eg photos stripped of Metadata by software) and one is not set in Batch Manager.]

Now it seems to function properly ;)

Last edited by pewe (2013-05-31 14:07:19)

Offline

 

#6 2013-06-01 02:20:38

xbgmsharp
Member
1970-01-01
215

Re: OpenStreetMap support request

Hello,

I am the author of plugin.
Thanks for testing and the feedback.

1. Fixed, from after to before. My original goal was to do it after but it is impossible and forgot to change the text.
2. Good point, I did not realized it but would explain some of my issue. My original goal was to add a new section like for the metadata but it would only show it present and could not figure out a perfect solution. Will ask the piwigo developer.

I fixed the PHP5.4 dependencies on the world map link, so you can now test it.

I hope to release the first version this week end.

I attach 2 screenshot.

Last edited by xbgmsharp (2013-06-01 02:23:53)

Offline

 

#7 2013-06-01 04:49:07

pewe
Member
2012-03-16
439

Re: OpenStreetMap support request

Thanks for the update.

Just 3 points:
1. When setting the link on the main panel on the left, it uses the heading 'World Map' which is the term already used by the Maps and Earth Plugin.
Could I suggest that either the user has the option to call the link as they wish, or it is renamed to 'OS World Map'.

2. When using the 'World Map' link there is no link to get back to the gallery from the map page. Possibly place a link at the top where the instructions text is. A link back to 'http://domain.com/piwigo directory/index.php?/categories and a link back to 'http://domain.com/piwigo directory/' would be useful.

3. In the world map, would it be possible to show a thumbnail in the image balloon, and to have the image name that appears in the balloon used as a link to the image?

Offline

 

#8 2013-06-02 06:58:07

xbgmsharp
Member
1970-01-01
215

Re: OpenStreetMap support request

Hello,

1. Done

2. Done

3. The thumbnail in the image balloon works on my installation, should be fix now
3. The thumbnail link to the image, Done

The change are commit to github, https://github.com/xbgmsharp/piwigo-openstreetmap/
If work well I can release a new revision later this weekend.

Thanks

Offline

 

#9 2013-06-02 13:32:53

pewe
Member
2012-03-16
439

Re: OpenStreetMap support request

Quick work xbg,

Works perfectly.

Offline

 

#10 2013-06-06 11:01:18

yvesbe
Guest

Re: OpenStreetMap support request

Hi there,
I use the open street map plug-in, which is really nice, but i have to point an annoying bug:

Guests are able to see thunbails on the map for the pictures which are in PRIVATE series.

A sample of what i mean can be seen here :
http://loup.kcorp.be/folio/piwigo/osmma … categories

there are 4 pictures taken in belgium (top right of the map) . 3 of them are nudes, the 4th is erotic. They are all in a private album and shouldn't be visible for guets users, but on the map , they are.

 

#11 2013-06-07 03:33:51

xbgmsharp
Member
1970-01-01
215

Re: OpenStreetMap support request

Hello,

Thanks for reporting.
Sorry about that.
Took me sometime to understand the permission of Piwigo.

The fix is commit to github, https://github.com/xbgmsharp/piwigo-openstreetmap/
I will release a new revision this weekend as there are other improvement.

Thanks

Offline

 

#12 2013-06-12 12:11:43

IGraham
Member
UK
2011-09-28
193

Re: OpenStreetMap support request

Nice plugin, works well, one I'll be keeping
my camera doesn't do gps, so i used Geotag (thought someone might want to know that)
placement as is http://sunderlandmountaineeringclub.org … tegory/165
and my question
Is it possible to move the location to the right of the image rather than under the image

Offline

 

#13 2013-06-12 12:32:42

pewe
Member
2012-03-16
439

Re: OpenStreetMap support request

I think the position is dictated by the theme you use.
I use Elegant, and the map is on the right of the picture in the details bar (with the metadata listing).

You may be able to change it using a custom template (or maybe there's another way - not sure).

Offline

 

#14 2013-06-12 13:45:22

flop25
Piwigo Team
2006-07-06
7037

Re: OpenStreetMap support request

If that's just the position , you could do it with CSS (cf the doc)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#15 2013-06-12 15:32:01

YvesBe
Guest

Re: OpenStreetMap support request

xbgmsharp wrote:

Hello,

Thanks for reporting.
Sorry about that.
Took me sometime to understand the permission of Piwigo.

The fix is commit to github, https://github.com/xbgmsharp/piwigo-openstreetmap/
I will release a new revision this weekend as there are other improvement.

Thanks

Hi there,

first, thanks for the update. I'm now able to turn the option on back It looks like permission works well now.

But there is another problem which might be harder to solve: 

If you look at the map available here :
http://loup.kcorp.be/folio/piwigo/osmma … categories
you can notice that the pictures taken in the north west of France are shown twice.
This happend, i think, because they're linked to differents albums
(one virtual and one real ?? or two virtual ? dunno)

It seems that each same pin shown on your map links to the same url for the picture in each album.
You could perhaps make a check on that url to avoid adding a point more than once ?

Best reguards,

Yves

 
  •  » Requests
  •  » OpenStreetMap support request

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact