diff --git a/example.config.js b/example.config.js
index 6885bd4..22cd3fe 100644
--- a/example.config.js
+++ b/example.config.js
@@ -28,7 +28,7 @@ module.exports = {
ui: {
style: {
categories: {
- alpha: 'blue',
+ // alpha: 'blue',
beta: 'orange'
},
shapes: {},
diff --git a/src/components/InfoPopup.jsx b/src/components/InfoPopup.jsx
index 3a5121e..5bb4fcd 100644
--- a/src/components/InfoPopup.jsx
+++ b/src/components/InfoPopup.jsx
@@ -7,15 +7,17 @@ export default ({ ui, app, methods }) => {
}
function renderHalfWithDot () {
- const categories = Object.keys(ui.style.categories).filter(label => label !== 'default')
+ // extract category colors from store for combined display.
+ const categoryKeys = Object.keys(ui.style.categories)
let firstFill = 'red'
- let secondFill = 'yellow'
- if (categories.length >= 1) {
- firstFill = 'rgb(163, 22, 33)'
+ let secondFill = 'blue'
+ if (categoryKeys.length >= 1) {
+ firstFill = ui.style.categories[categoryKeys[0]]
}
- if (categories.length >= 2) {
- secondFill = '#1c5df9'
+ if (categoryKeys.length >= 2) {
+ secondFill = ui.style.categories[categoryKeys[1]]
}
+
return [
,