From 8f2bbc6765010c001d12531ab1d4aabca46a177f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 24 Jan 2025 18:24:33 +0100 Subject: [PATCH] fix: re-compute layer settings when type changed --- umap/static/umap/js/modules/rendering/layers/classified.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/rendering/layers/classified.js b/umap/static/umap/js/modules/rendering/layers/classified.js index ff02c33f..138f53b0 100644 --- a/umap/static/umap/js/modules/rendering/layers/classified.js +++ b/umap/static/umap/js/modules/rendering/layers/classified.js @@ -468,7 +468,7 @@ export const Categorized = FeatureGroup.extend({ onEdit: function (field, builder) { // Only compute the categories if we're dealing with categorized - if (!field.startsWith('options.categorized')) return + if (!field.startsWith('options.categorized') && field !== 'options.type') return // If user touches the categories, then force manual mode if (field === 'options.categorized.categories') { this.datalayer.options.categorized.mode = 'manual'