X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b5800b4c2f51e265b51f6b0cd45728b8d7db86aa..f898058e76459562e8d54c61458eba0fb1476f35:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index bea877e66..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( + $('