X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2a9286a16a0ca0e6aa025b13771d3118040b9d60..7094370208712e77d92ea2ad0d76e160742d6c0a:/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 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 = $('