diff --git a/src/assets/js/map-util.js b/src/assets/js/map-util.js index ff7ea76d6842084ec1a1e738ddc5f419a12616f8..41f503d0149c59fa6f75e4c537014247602011ca 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;