From 17afb5c47d6c2929d3ab6c2033782fbf0648a401 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 10 Sep 2018 12:43:39 +0200 Subject: [PATCH] Fix label on hover not working (fix #631) --- umap/static/umap/js/umap.core.js | 2 +- umap/static/umap/js/umap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 7fcb521b..2d926143 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -121,7 +121,7 @@ L.Util.detectFileType = function (f) { }; 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) { diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index abb43c41..394a04b9 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -545,7 +545,7 @@ L.U.Map.include({ getOption: function (option) { if (L.Util.usableOption(this.options, option)) return this.options[option]; - else return this.getDefaultOption(option); + return this.getDefaultOption(option); }, updateExtent: function() {