L.OSM.locate = function (options) {
- var control = L.control.locate({
+ const control = L.control.locate({
icon: "icon geolocate",
iconLoading: "icon geolocate",
strings: {
});
control.onAdd = function (map) {
- var container = Object.getPrototypeOf(this).onAdd.apply(this, [map]);
+ const container = Object.getPrototypeOf(this).onAdd.apply(this, [map]);
$(container)
.removeClass("leaflet-control-locate leaflet-bar")
.addClass("control-locate")