mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: re-compute layer settings when type changed
This commit is contained in:
parent
d5efe6b8e2
commit
8f2bbc6765
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue