X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f5f4bfd72502e4edf9b6e4d76fd012a67f6fa693..f898058e76459562e8d54c61458eba0fb1476f35:/app/assets/javascripts/leaflet.share.js?ds=sidebyside diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index b808bc435..d55b0bbd9 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -1,5 +1,10 @@ L.OSM.share = function (options) { - var control = L.control(options); + var control = L.control(options), + marker = L.marker([0, 0], {draggable: true}), + locationFilter = new L.LocationFilter({ + enableButton: false, + adjustButton: false + }); control.onAdd = function (map) { var $container = $('
') @@ -29,6 +34,8 @@ L.OSM.share = function (options) { $('

') .text(I18n.t('javascripts.share.title'))); + // Link + var $linkSection = $('
') .attr('class', 'section share-link') .appendTo($ui); @@ -37,6 +44,23 @@ L.OSM.share = function (options) { .text(I18n.t('javascripts.share.link')) .appendTo($linkSection); + var $form = $('
') + .attr('class', 'standard-form') + .appendTo($linkSection); + + $('
') + .attr('class', 'form-row') + .appendTo($form) + .append( + $('