Reapply leaflet.locate patch
authorTom Hughes <tom@compton.nu>
Fri, 6 Dec 2013 19:40:54 +0000 (19:40 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 6 Dec 2013 19:40:54 +0000 (19:40 +0000)
vendor/assets/leaflet/leaflet.locate.js

index 8f1568fe6dfcc4b9cf6e069881fdd0aa40c519e8..7e835c8772224264ebee609081e91cb3f38a9eb5 100644 (file)
@@ -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 = "<span class='icon geolocate'></span>";
         link.href = '#';
         link.title = this.options.strings.title;