Use a Style or a Style function as parameter to setStyle action
This commit is contained in:
@@ -120,7 +120,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
||||
key = 'file';
|
||||
}
|
||||
}
|
||||
var styleEntry = this.stylesCache[key];
|
||||
var styleEntry = this.stylesCache[key];
|
||||
if(typeof styleEntry === 'function') {
|
||||
return styleEntry(feature);
|
||||
}
|
||||
return styleEntry;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user