X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a89d75d3d8824c2a4c2c3567083afc986c3b18a6..2fa422578448314fb6fad888b5c47cf994cb0b8c:/app/assets/javascripts/leaflet.share.js
diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js
index 441acfd74..b5f45e01d 100644
--- a/app/assets/javascripts/leaflet.share.js
+++ b/app/assets/javascripts/leaflet.share.js
@@ -296,14 +296,16 @@ 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(
'
' +
- '' +
+ escapeHTML(I18n.t('javascripts.share.view_larger_map')) + '');
// Image