Added a tooltip on the "Fit Data Bounds" button (#16753) (#17103)

Added a tooltip on the "Fit Data Bounds" button
This commit is contained in:
Tim Roes 2018-03-12 16:03:04 +01:00 committed by GitHub
parent dffeca18bd
commit d0ea1de159
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ function makeFitControl(fitContainer, kibanaMap) {
},
onAdd: function (leafletMap) {
this._leafletMap = leafletMap;
$(this._fitContainer).html('<a class="kuiIcon fa-crop" href="#" aria-label="Fit Data Bounds"></a>')
$(this._fitContainer).html('<a class="kuiIcon fa-crop" href="#" title="Fit Data Bounds" aria-label="Fit Data Bounds"></a>')
.on('click', e => {
e.preventDefault();
this._kibanaMap.fitToData();