Fix select on hover ( null ref)
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
Details
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
Details
parent
52b4f90b78
commit
81ed89b240
|
@ -67,6 +67,9 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||
} else {
|
||||
evaluatedStyle = this.stylesCache["selected"];
|
||||
}
|
||||
if(evaluatedStyle && evaluatedStyle.geometry_ == null) {
|
||||
evaluatedStyle.setGeometry((feature) => this.geometry(feature));
|
||||
}
|
||||
return evaluatedStyle
|
||||
}
|
||||
|
||||
|
@ -135,7 +138,7 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||
} else {
|
||||
evaluatedStyle = styleEntry;
|
||||
}
|
||||
if(evaluatedStyle.geometry_ == null) {
|
||||
if(evaluatedStyle && evaluatedStyle.geometry_ == null) {
|
||||
evaluatedStyle.setGeometry((feature) => this.geometry(feature));
|
||||
}
|
||||
return evaluatedStyle;
|
||||
|
|
Loading…
Reference in New Issue