From: Tom Hughes Date: Fri, 23 May 2014 09:47:48 +0000 (+0100) Subject: Reapply leaflet.locate patch X-Git-Tag: live~5007 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3ca85f2ac5b3a8d5986e60c82eeff9046f019bef Reapply leaflet.locate patch --- diff --git a/vendor/assets/leaflet/leaflet.locate.js b/vendor/assets/leaflet/leaflet.locate.js index 26ecdf647..822b24da2 100644 --- a/vendor/assets/leaflet/leaflet.locate.js +++ b/vendor/assets/leaflet/leaflet.locate.js @@ -63,8 +63,7 @@ L.Control.Locate = L.Control.extend({ }, onAdd: function (map) { - var container = L.DomUtil.create('div', - 'leaflet-control-locate leaflet-bar leaflet-control'); + var container = L.DomUtil.create('div', 'control-locate'); var self = this; this._layer = new L.LayerGroup(); @@ -86,7 +85,8 @@ L.Control.Locate = L.Control.extend({ L.extend(tmp, this.options.circleStyle, this.options.followCircleStyle); this.options.followCircleStyle = tmp; - var link = L.DomUtil.create('a', 'leaflet-bar-part leaflet-bar-part-single ' + this.options.icon, container); + var link = L.DomUtil.create('a', 'control-button ' + this.options.icon, container); + link.innerHTML = ""; link.href = '#'; link.title = this.options.strings.title;