ArcGIS Javascript FeatureLayer MODE Numbers

2380
1
Jump to solution
01-05-2016 02:44 PM
MeleKoneya
Occasional Contributor III

If I look at the constructor details for the FeatureLayer,  it shows mode as a parameter of type <number> with the following query modes liseted:

  • FeatureLayer.MODE_SNAPSHOT:
  • FeatureLayer.MODE_ONDEMAND:
  • FeatureLayer.MODE_SELECTION:
  • FeatureLayer.MODE_AUTO:

What are the numbers that correspond to the above modes?

I can see a number of 1 for my featureLayer but don't know what that corresponds to.

Thanks,

Mele

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
TomSellsted
MVP Regular Contributor

Mele,

They are:

MODE_SNAPSHOT: 0

MODE_ONDEMAND: 1

MODE_SELECTION: 2

SELECTION_NEW: 3

SELECTION_ADD: 4

SELECTION_SUBTRACT: 5

MODE_AUTO: 6

MODE_STREAM: 7

Regards,

Tom

View solution in original post

1 Reply
TomSellsted
MVP Regular Contributor

Mele,

They are:

MODE_SNAPSHOT: 0

MODE_ONDEMAND: 1

MODE_SELECTION: 2

SELECTION_NEW: 3

SELECTION_ADD: 4

SELECTION_SUBTRACT: 5

MODE_AUTO: 6

MODE_STREAM: 7

Regards,

Tom