X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2a9286a16a0ca0e6aa025b13771d3118040b9d60..b1dae2e7988d5e808b1716eb331d359575e829e5:/app/assets/javascripts/leaflet.share.js diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 7d5eb0cc9..b808bc435 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -1,65 +1,75 @@ -//= require templates/map/share +L.OSM.share = function (options) { + var control = L.control(options); -L.Control.Share = L.Control.extend({ - options: { - position: 'topright', - title: 'Share', - url: function(map) { - return ''; - } - }, + control.onAdd = function (map) { + var $container = $('