AnsweredAssumed Answered

FeatureLayer from JSON

Question asked by leitrimcoco on Jan 31, 2012
Latest reply on Jul 8, 2015 by adamcarto

I'm trying to create a simple piece of code that uses a JSON string to create a FeatureLayer. I'd got to the point where it was adding 1 point out of the 4 specified, in the JSON, to the map. To cut a long story short, I eventually found this thread below to be able to compare against a working example

The fundamental difference appeared to be that I was using API 2.6 and this example used 2.1 as the exact same code works fine after changing the api reference. Could anyone give me a pointer as to how I'm supposed to get all my points appearing in the FeatureLayer with the 2.6 API? I can't find any indications as to what would have changed, from the reference material. I've attached a zip with my simple example. The featureset imports the json correctly but loses all but one of the points when added.