Reapply leaflet.locate patch
This commit is contained in:
parent
8b182b5c70
commit
3ca85f2ac5
1 changed files with 3 additions and 3 deletions
6
vendor/assets/leaflet/leaflet.locate.js
vendored
6
vendor/assets/leaflet/leaflet.locate.js
vendored
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue