X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a89d75d3d8824c2a4c2c3567083afc986c3b18a6..d31fc7c2f5c0f43b9e65479e3f1690bdd0c2fb4a:/app/assets/javascripts/leaflet.share.js?ds=inline diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 441acfd74..b53524f25 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -296,7 +296,8 @@ L.OSM.share = function (options) { }; if (map.hasLayer(marker)) { - params.marker = marker.getLatLng().lat + ',' + marker.getLatLng().lng; + var latLng = marker.getLatLng().wrap(); + params.marker = latLng.lat + ',' + latLng.lng; } $('#embed_html').val(