From: Tom Hughes Date: Fri, 6 Dec 2013 19:40:54 +0000 (+0000) Subject: Reapply leaflet.locate patch X-Git-Tag: live~4573 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8af565b2937cfba40d9695ee44041ea7f201e2c7?hp=a2e06ea667a7899fa5a4fbbcd22141c5f2b90f95 Reapply leaflet.locate patch --- diff --git a/vendor/assets/leaflet/leaflet.locate.js b/vendor/assets/leaflet/leaflet.locate.js index 8f1568fe6..7e835c877 100644 --- a/vendor/assets/leaflet/leaflet.locate.js +++ b/vendor/assets/leaflet/leaflet.locate.js @@ -55,8 +55,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(); @@ -80,7 +79,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', container); + var link = L.DomUtil.create('a', 'control-button', container); + link.innerHTML = ""; link.href = '#'; link.title = this.options.strings.title;