]> git.openstreetmap.org Git - rails.git/commitdiff
Reapply leaflet.locate patch
authorTom Hughes <tom@compton.nu>
Fri, 23 May 2014 09:47:48 +0000 (10:47 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 23 May 2014 09:47:48 +0000 (10:47 +0100)
vendor/assets/leaflet/leaflet.locate.js

index 26ecdf6477b40de6bc48342c68a0aa7bcca31f24..822b24da23daa0490be3a2bd62bee181f09da3c5 100644 (file)
@@ -63,8 +63,7 @@ L.Control.Locate = L.Control.extend({
     },
 
     onAdd: function (map) {
     },
 
     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();
 
         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;
 
         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 = "<span class='icon geolocate'></span>";
         link.href = '#';
         link.title = this.options.strings.title;
 
         link.href = '#';
         link.title = this.options.strings.title;