AnsweredAssumed Answered

JS Api 4.7 Sublayer.createFeatureLayer() is not working

Question asked by kaylas.arcgis on Jun 19, 2018
Latest reply on Aug 30, 2018 by KEkenes-esristaff

I am working with MapImageLayer on map. As i need to update some data i am trying to create FeatureLayer from sublayer. But function Sublayer.createFeatureLayer()  returns error "Cannot read property 'clone' of null" . I see that property Sublayer.renderer is null and it causes this error. But i am not sure how to fix it. Any thoughts ?