Fix label on hover not working (fix #631)

This commit is contained in:
Yohan Boniface 2018-09-10 12:43:39 +02:00
parent c5ca7e5d73
commit 17afb5c47d
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ L.Util.detectFileType = function (f) {
}; };
L.Util.usableOption = function (options, option) { L.Util.usableOption = function (options, option) {
return typeof options[option] !== 'undefined' && options[option] !== '' && options[option] !== null; return typeof options[option] !== 'undefined' && options[option] !== '';
}; };
L.Util.greedyTemplate = function (str, data, ignore) { L.Util.greedyTemplate = function (str, data, ignore) {

View file

@ -545,7 +545,7 @@ L.U.Map.include({
getOption: function (option) { getOption: function (option) {
if (L.Util.usableOption(this.options, option)) return this.options[option]; if (L.Util.usableOption(this.options, option)) return this.options[option];
else return this.getDefaultOption(option); return this.getDefaultOption(option);
}, },
updateExtent: function() { updateExtent: function() {