]> git.openstreetmap.org Git - rails.git/commitdiff
Reapply patch
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 8 Aug 2013 21:26:36 +0000 (14:26 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 8 Aug 2013 21:26:36 +0000 (14:26 -0700)
vendor/assets/leaflet/leaflet.locate.js

index 64fb144d4b209cf075aba4475e36deca7551a5c8..fd017d4c89da97ce03e5399f55c79ab17f1e0826 100644 (file)
@@ -54,8 +54,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();
@@ -79,7 +78,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;