フィーチャ レイヤーのモード

var featurelayer = new FeatureLayer("http://services.arcgis.com/wlVTGRSYTzAbjjiC/ArcGIS/rest/services/SampleJapan/FeatureServer/1", {mode:FeatureLayer.MODE_SNAPSHOT});

FeatureLayer.MODE_SNAPSHOT	//すぐにすべてのフィーチャを取得
FeatureLayer.MODE_ONDEMAND	//現在のビューのフィーチャを取得
FeatureLayer.MODE_SELECTION	//選択フィーチャのみ取得
FeatureLayer.MODE_AUTO


require([
  "esri/tasks/query", "esri/layers/FeatureLayer", ... 
], function(Query, FeatureLayer, ... ) {
  var query = new Query();
  var featureLayer = new FeatureLayer( ... );
  query.geometry = feature.geometry;
  featureLayer.selectFeatures(query,FeatureLayer.SELECTION_NEW);
  ...
});