map.graphics.add(feature);
FeatureLayer的模式选择
快照模式 mode_snapshot
选择模式 mode_selection
按需模式 mode_ondemand
var featureLayer = new FeatureLayer("http://sampleserver5.arcgisonlin.com/0",{mode:FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate : new InfoTemplate(" ","${SUB_REGION}")
});
对返回数据的限定 setDefinitionExpression
<
FeatureLayer的模式选择
快照模式 mode_snapshot
选择模式 mode_selection
按需模式 mode_ondemand
var featureLayer = new FeatureLayer("http://sampleserver5.arcgisonlin.com/0",{mode:FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
infoTemplate : new InfoTemplate(" ","${SUB_REGION}")
});
对返回数据的限定 setDefinitionExpression
<