Hello,
I created a geojsonLayers from a local json file. However, the definitionExpression is set to "1=0" so none of the points show when the page loads. The points visibility is triggered by checkboxes in a menu that update the definitionExpression. This works fine.
The problem is that the search UI doesn't search that jsonlayer because none of the points are actually added to the view when the map loads.
Is there a solution to that? Probably a different approach.
A solution I found was to reload the json file in the search source, but then I lose the jsonrender define for the jsonlayer.
Any help appreciated.
Thanks!
Ben