Hi all,
I try to set a definition expression on a feature layer that has been constructed with the source propertie. It seems that the definition expression propertie only works with hosted feature service. I tried to set a definition expression on the earthQuake example here : "Create a FeatureLayer with client side graphics | ArcGIS API for JavaScript 4.0 " but have no effects, but it works fine with hosted feature service.
Nothing mentioned this limitation in the documentation.
Can you confirm that or show a way to do that with a feature Layer that is not a hosted feature service?
Thanks in advance for your feedback.