]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/leaflet/leaflet.locate.js
Allow closing the sidebar when a timeout occured
[rails.git] / vendor / assets / leaflet / leaflet.locate.js
index 26ecdf6477b40de6bc48342c68a0aa7bcca31f24..822b24da23daa0490be3a2bd62bee181f09da3c5 100644 (file)
@@ -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 = "<span class='icon geolocate'></span>";
         link.href = '#';
         link.title = this.options.strings.title;