origo
origo copied to clipboard
In featureinfo.showInfo, fallback on getfeature if getSource().getFeatureById returns null
There are cases where a feature isn't loaded in the source, eg when using loadingstretegy bbox or using the API. Then it is useful to instead make a getfeature call to get the feature. Adding a few lines to featureinfo.showInfo would probably solve this and add useful functionality to the API.