Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Request for an extension to the plug-in: two classes of pointer. #114

Open IanMac900 opened 7 years ago

IanMac900 commented 7 years ago

I have over 2000 photos on my website arranged in a tree structure of 360 albums. I have added the gps coordinates to over 50 'Key' photos. In the following, I am considering the display of the pins on the map in the 'Category's description', as you describe it on the Admin page.

It does not make sense to give all those 2000 photos gps coordinates and have all of them displayed on the top level or indeed on levels near the top of the album/folder tree structure, as they are located in one very small geographical area (a village). The ideal is for each photo to have one of two classes of pointer: the pointer showing the location of one key photo being displayed on the maps of the top album levels; for this pin to be there to link the user straight to the relevant linked album. Then to only display the locations of the other photos of that album, when that album (the 'Category's description') and it's map is being displayed.

What is needed to make this happen are two selections for each photo in the OpenStreetMap section of each photo's Properties page. These are:-

  1. EITHER: Link to photo's linked album display OR link to photo's image display (as is currently the case)
  2. EITHER: Display location only on the map of the photo's linked album(s) OR display location in the maps of all the albums in levels above and including the photo's linked albums (as is currently the case).

    ... and then some more of your excellent coding!