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

suggestion: give the relevant marker another color #67

Open meulie opened 8 years ago

meulie commented 8 years ago

example URL: http://pub.meulie.net/picture/89-01_082_op_den_ijsel_bij_zutphen

I have 2 images very close to each other, and some more in the direct neighbourhood. Currently all markers are 100% identical, which makes it hard to tell which marker belongs to the image on that page. Is it an idea to give that one marker a different appearance?

xbgmsharp commented 8 years ago

Are you using the latest github version? I guess as this is bug introduce by a change for issue #64

meulie commented 8 years ago

Yup, I downloaded the latest version right before reporting this issue :)

xbgmsharp commented 8 years ago

The latest version from where piwigo or github?

xbgmsharp commented 8 years ago

Please revert commit from #64, a quick fix would be to replace in file picture.inc.php on line 129:

$js_data = osm_get_items($page);

by

$js_data = array(array($lat, $lon, null, null, null, null, null, null));

https://github.com/xbgmsharp/piwigo-openstreetmap/blob/master/picture.inc.php#L129

meulie commented 8 years ago

I was referring to the latest version from github :)

reverting #64 does remove all the other pins, and leaves only the pin of the image on the page.