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