This line should be rewritten in such a way that it accepts any input which is 'array-like' (ie. can be destructured with the spread operator) such that either an array or a set may be passed in.
I believe the only thing currently preventing that is the check for .size
|
const searchLayers = (queryLayers && queryLayers.size) ? new Set(_.intersection([...displayLayers], [...queryLayers])) : displayLayers |
This line should be rewritten in such a way that it accepts any input which is 'array-like' (ie. can be destructured with the spread operator) such that either an array or a set may be passed in.
I believe the only thing currently preventing that is the check for
.sizespatial/server/routes/pip_pelias.js
Line 63 in dec8317