|
const geojson = { type: 'FeatureCollection', metadata, features } |
The above line assumes cached objects are always features. However, my getData function, returns {layers} , and this is a valid return value for koop-output-geoservices to handle. For requests to /FeatureServer and /FeatureServer/layers , the cached response is not retrieved properly due to the above (the features property will be assigned {layers}, which leads to errors in handling the geoJSON downstream).