Skip to content
Snippets Groups Projects
Commit d569c62b authored by Timothee P's avatar Timothee P :sunflower:
Browse files

prevent undefined opacities in colors_style

parent c32072c4
No related branches found
No related tags found
No related merge requests found
......@@ -343,7 +343,7 @@ const mapService = {
const colorsStyle = featureType.colors_style;
if (featureType && colorsStyle && colorsStyle.custom_field_name) {
const currentValue = properties[colorsStyle.custom_field_name];
if (currentValue) {
if (currentValue && colorsStyle.opacities) {
const colorStyle = colorsStyle.opacities[currentValue];
return parseFloat(colorStyle ? colorStyle : featureType.opacity);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment