From 1925e2dcfca3abd460589e539fcb1ca93b2e5439 Mon Sep 17 00:00:00 2001 From: florent <flavelle@neogeo.fr> Date: Thu, 6 Jan 2022 16:57:25 +0100 Subject: [PATCH] dev --- src/assets/js/map-util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/js/map-util.js b/src/assets/js/map-util.js index ff7ea76d..41f503d0 100644 --- a/src/assets/js/map-util.js +++ b/src/assets/js/map-util.js @@ -311,6 +311,10 @@ const mapUtil = { const featureType = featureTypes.find((x) => x.slug.split('-')[0] === '' + properties.feature_type_id); const color = this.retrieveFeatureColor(featureType, properties); + const colorValue = + color.value && color.value.length ? + color.value : typeof color === 'string' && color.length ? + color : '#000000'; // Look for a custom field let customField; -- GitLab