From 98f4e69abbf07945a22ee51ae47ca54e8c8bc70b Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 23 Jun 2023 08:15:39 +0200 Subject: [PATCH] getSmartOption => getDynamicOption --- umap/static/umap/js/umap.features.js | 4 ++-- umap/static/umap/js/umap.icon.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index e562a521..1c29efcd 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -271,7 +271,7 @@ L.U.FeatureMixin = { return value }, - getSmartOption: function (option, fallback) { + getDynamicOption: function (option, fallback) { let value = this.getOption(option, fallback) // There is a variable inside. if (typeof value === 'string' && value.indexOf('{') != -1) { @@ -718,7 +718,7 @@ L.U.PathMixin = { let option for (const idx in this.styleOptions) { option = this.styleOptions[idx] - options[option] = this.getSmartOption(option) + options[option] = this.getDynamicOption(option) } if (options.interactive) this.options.pointerEvents = 'visiblePainted' else this.options.pointerEvents = 'stroke' diff --git a/umap/static/umap/js/umap.icon.js b/umap/static/umap/js/umap.icon.js index 8227518e..a77de8f0 100644 --- a/umap/static/umap/js/umap.icon.js +++ b/umap/static/umap/js/umap.icon.js @@ -24,7 +24,7 @@ L.U.Icon = L.DivIcon.extend({ _getColor: function () { let color - if (this.feature) color = this.feature.getSmartOption('color') + if (this.feature) color = this.feature.getDynamicOption('color') else if (this.options.color) color = this.options.color else color = this.map.getDefaultOption('color') return color