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

投稿日:2016/9/1 (木) 更新日:

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);
  ...
});

関連記事

-プログラミング, ArcGIS
-,

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.