Select to view content in your preferred language

Get a FeatureCollection from a FeatureLayer

2387
1
07-22-2010 10:43 AM
RO
by
Emerging Contributor
I've added a new FeatureLayer to my map in snapshot mode.
However when I call:
var fc:FeatureCollection = featurelayer.featureCollection, I always get null.

How do you get a featureCollection from a featureLayer?
Tags (2)
0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor
The docs don't mention how to really use this, but based on the comments in this thread, it looks like you set FeatureCollection yourself to use with time-aware data.

Here is a sample
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=TemporalRenderer_FeatureCollection

It looks like you could basically load up any FeatureSet or LayerDetails into the FeatureCollection. I don't think you'd be limited to time-aware data.
0 Kudos