AnsweredAssumed Answered

Clone features from getSelectedFeatures() method

Question asked by clemini on Aug 4, 2016
Latest reply on Aug 4, 2016 by thejus.kambi

Hello !

 

I would like to clone in a new array (a deep copy without references) the features I have selected from a feature layer with the getSelectedFeatures() method.

 

I try to use lang.clone from dojo but it doesn't work. I have this error : "TypeError: this._url is null".

I understand it cames from the feature layer. But I don't know how to fix this error or even if it's possible to do what I want to do by this way. I'm quite new with JSAPI.

I already used lang.clone with polygons from serviceAreaSolveResult and it worked very well !

 

Could someone help me on this problem ?

 

Thanks in advance.

 

Clemini.

Outcomes