mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: add a label for default colors scheme in categorized layer type
This commit is contained in:
parent
609b251303
commit
8111cf5522
1 changed files with 5 additions and 1 deletions
|
@ -88,7 +88,11 @@ const ClassifiedMixin = {
|
|||
},
|
||||
|
||||
getColorSchemes: function (classes) {
|
||||
return this.colorSchemes.filter((scheme) => Boolean(colorbrewer[scheme][classes]))
|
||||
const found = this.colorSchemes.filter((scheme) =>
|
||||
Boolean(colorbrewer[scheme][classes])
|
||||
)
|
||||
if (found.length) return found
|
||||
return [['', translate('Default')]]
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue