Commit 28f3a93
authored
Reset default greenred iconAnchor xy in osm_get_js
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.1 parent 22f3b00 commit 28f3a93
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
| 399 | + | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments