Closed rgwozdz closed 2 years ago
There is a bug in query.js that prevents queries that have returnCountOnly=true and returnExtent=true from rendering the proper results. The specific problem lies here.
if (options.returnCountOnly && data.count !== undefined) return { count: data.count }
If returnCountOnly=true and returnExtent=true (and data.count is undefined), FeatureServer returns a response without an extent.
returnCountOnly=true
returnExtent=true
data.count
This PR fixes that bug, albeit with quite a lot of refactoring I did to try to make sense of existing logic and flows.
There is a bug in query.js that prevents queries that have returnCountOnly=true and returnExtent=true from rendering the proper results. The specific problem lies here.
If
returnCountOnly=true
andreturnExtent=true
(anddata.count
is undefined), FeatureServer returns a response without an extent.This PR fixes that bug, albeit with quite a lot of refactoring I did to try to make sense of existing logic and flows.