Hi,
Is it possible to instantiate a FeatureLayer from a JSON coming from the server (4.X)?
From the types it looks like it should be possible:
But sadly it tells me the function does not exist.
Solved! Go to Solution.
Hi there,
As you guessed, it is not possible to create FeatureLayer directly from the JSON object at the moment. We have a plan to add support for this, however, I do not know what the timeline is.
Hi there,
As you guessed, it is not possible to create FeatureLayer directly from the JSON object at the moment. We have a plan to add support for this, however, I do not know what the timeline is.
By the way I found a way-ish to create a Feature Layer from a JSON object. I'm using an interceptor to intercept the endpoint request and return the JSON at that point. It allows us to bypass the endpoint call everytime we mount the layer.