Select to view content in your preferred language

selecting a feature when they are not visible

604
1
10-06-2014 03:37 PM
WorkPlayce
New Contributor

I have feature layer on which features are not yet visible because the map is initially zoomed out past its minimum extent, and apparently the features are not populated.

Running selectFeatures on the layer by passing it a set of objectid's.

And the query is returning null list of features and no features are selected.

Is there an easy way where the features can be preselected even before they are populated?  Such as when the user zooms in past the min extent?

Thanks.

0 Kudos
1 Reply
RiyasDeen
Regular Contributor

Hi Work,

Try setting your feature layer mode as MODE_SELECTION. featurelayer-amd | API Reference | ArcGIS API for JavaScript

0 Kudos