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

Reset default greenred iconAnchor xy in osm_get_js #162

Closed 7tonin closed 9 months ago

7tonin commented 5 years ago

Those icons were misplaced on picture map: iconAnchor needed to be updated. To solve this I copied default values from L.Icon.Default options in leaflet-src.js (3395) https://github.com/xbgmsharp/piwigo-openstreetmap/blob/master/leaflet/leaflet-src.js#L3395 I did the same for popupAnchor because blue default icon has the same footprint as green and red default icons, and because leaflet-src.js is reliable. It's better with 1 x value that let the popup centered, but if -34 y value seems to high for wide maps not that tall, it would be great to move the popup on the side.

7tonin commented 2 years ago

Today commit is for adding latitude and longitude vlaues next to the picture right side map.