I'm creating a FeatureLayer, its source is an array of objects.
Everything works well until I try to add a point to the layer using applyEdits. It throws an exception saying "FeatureLayer Layer source does not support applyEdits capability".
What does this error mean? How do I make the layer support applyEdits?
Solved! Go to Solution.
Yariv,
I not 100% sure but I think in 4.8 you made edits to the source by just directly editing the source graphics. There is no need to use applyEdits as there is no server involved. In 4.10 you will use applyEdits for FeatureLayers that come from client side graphics.
Yariv,
Which version of the JS API are you referring to?
4.8
Yariv,
I not 100% sure but I think in 4.8 you made edits to the source by just directly editing the source graphics. There is no need to use applyEdits as there is no server involved. In 4.10 you will use applyEdits for FeatureLayers that come from client side graphics.
Thank you, but I'm not sure I understand. I would like to add a point. Once the FeatureLayer has loaded, with the points I added to its source, how do I add a new point?
You just add the new point to the graphic array that you used as the FL source.
Thank you very much!
Don’t forget to mark this question as answered by clicking on the mark correct link on the reply that answered your question.