Fix issue
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2023-02-14 17:22:26 +01:00
parent fa90eaf1af
commit 4c5b89852b

View File

@ -146,7 +146,7 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
} else {
evaluatedStyle = styleEntry;
}
if (evaluatedStyle && evaluatedStyle.geometry_ == null) {
if (evaluatedStyle && evaluatedStyle.geometry_ == null && !Array.isArray(evaluatedStyle)) {
evaluatedStyle.setGeometry((feature) => this.geometry(feature));
}
return evaluatedStyle;