AGSFeatureSet *empty = [[AGSFeatureSet alloc] init]; AGSFeatureLayer *fl = [[AGSFeatureLayer alloc] initWithLayerDefinitionJSON:featureLayerDefinition featureSet:empty]]; [[self mapView] addMapLayer:fl withName:@"test"];
Solved! Go to Solution.
This is the exception is being thrown:
2013-02-18 16:02:58.917 Development[7570:c07] -[NSNull ags_CGFloatValue]: unrecognized selector sent to instance 0x31f8678
2013-02-18 16:02:58.919 Development[7570:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull ags_CGFloatValue]: unrecognized selector sent to instance 0x31f8678'
*** First throw call stack:
(0x30c7012 0x2e0fe7e 0x31524bd 0x30b6bbc 0x30b694e 0x17daac 0x180857 0x17f543 0x180857 0x181455 0x16f7f2 0x16f537 0x16e6c6 0x13fd7c 0x13cfef 0x30bb1bd 0x30bb0d6 0x2e236b0 0x1cf8765 0x304af3f 0x304a96f 0x306d734 0x306cf44 0x306ce1b 0x47747e3 0x4774668 0x2132ffc 0x14a6d 0x2fe5 0x1)
libc++abi.dylib: terminate called throwing an exception
This is the exception is being thrown:
2013-02-18 16:02:58.917 Development[7570:c07] -[NSNull ags_CGFloatValue]: unrecognized selector sent to instance 0x31f8678
2013-02-18 16:02:58.919 Development[7570:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull ags_CGFloatValue]: unrecognized selector sent to instance 0x31f8678'
*** First throw call stack:
(0x30c7012 0x2e0fe7e 0x31524bd 0x30b6bbc 0x30b694e 0x17daac 0x180857 0x17f543 0x180857 0x181455 0x16f7f2 0x16f537 0x16e6c6 0x13fd7c 0x13cfef 0x30bb1bd 0x30bb0d6 0x2e236b0 0x1cf8765 0x304af3f 0x304a96f 0x306d734 0x306cf44 0x306ce1b 0x47747e3 0x4774668 0x2132ffc 0x14a6d 0x2fe5 0x1)
libc++abi.dylib: terminate called throwing an exception
That's excellent, thank you very much. I had a feeling it was happening because of nulls or missing fields but my attempts to remove them hadn't worked, I should have persisted.
Cheers.