01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 | 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); ... }); |
フィーチャ レイヤーのモード
2016/9/1 (木)