Hi all,
we have an ArcGIS JS API 4.24 web application. We have an ArcGIS Enterprise 10.9.1 with a map service. One of the sublayers is having symbology with display filters enabled. The active filter is by scale. So in different scales we query the layer and display different polygons (polygons that they overlap with each other, in some cases).
We load this specific layer to our JS API web app by instantiate a new MapImageLayer with the specific sublayers. We set properties listMode: hide and visible: false everywhere.
There is a custom UI where the user can select what layers to display. When the user selects the specific sublayer then we set the properties listMode to "show" and visible to "true".
Everything works fine, except the first time the user performs this action.
When the user displays for first time the sublayer and clicks on the polygons to open the popup, then we see popups for all the polygons, even the filtered out ones e.g. 1 of 10
If we pan/zoom and we return to the same scale, then the layer is refreshed and then the popup is behaving properly i.e. it shows 1 of 2
1 of 101 of 2
Please let us know about any feedback! Maybe we need to refresh the MapImageLayer after with set the listMode to "show"? Any ideas are welcome!