Hello,
When migrating to version 4.24 of ArcGIS API for JavaScript, I can not change the definition expression of a feature layer on a map view. I try to change the definition expression once the layer is loaded on the map. Have you noticed this problem ?
Thanks for your answer,
Eliseo
Hi @ec_inser, thanks for posting here. Can you share a simple sample app that reproduces the issue on something like Codepen? Or can you just share the definition expression code here? Also, did you migrate from another 4x version, or from 3x?
Hi there,
There are no known problems with setting definitionExpression on a layer after the layer is loaded. This very simple codepen shows that it is working: https://codepen.io/U_B_U/pen/dyebObx?editors=100
The app waits for the layerView is created for the layer and sets the definition expression.