My layer of
Point features is exposed through a REST service. I want to retrieve all of these features when the application starts up, then show different subsets of features at different times, depending on user input (such as text search) and client-side calculations (such as clustering calculations). If I just create a
FeatureLayer normally, it won't actually retrieve any features before it's added to a map -- its
graphics property is just
 when I look at it in Firebug. I tried calling
FeatureLayer.refresh, but it just complains that
map is undefined.
How do I retrieve the features without having to attach them to a map?