For a project, I am working on an app based on multiples FeatureLayers with the version 4.11.
The changes on the map are send with a WebSocket to the others clients online.
We must be able to see the changes on the view without any action, so without any refresh.
I tried, on recommandation, to separate the actions, one FeatureLayer interacting with the serveur and its "copy" managing the client. We could theoretically use applyEdits on both every time we update or add a feature from the view or from the WebSocket.
This is how I create the new client FeatureLayer (remember that we have multiple FeatureLayers) :
But it doesn't work. at least not when I use the featureTemplate to add a new feature.
I don't see the templates in the featureTemplates, just a blank space.
If I use the serverFeatureLayer for the featureTemplates, I do see the templates with the renderer but the function doesn't work. The new feature doesn't appear in the view even if it is send to the server and appear in the client graphics collection.
The problems may come from the templates :
or from the applyedits, or even the treatments of the renderers