Reapply patch

This commit is contained in:
John Firebaugh 2013-08-08 14:26:36 -07:00
parent 1b2738af80
commit dc877c3d03

View 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;