js怎么获取 featurelayerr对象中图层的别名
1个回答
展开全部
ml] view plain copy
function dynamicLayerData(){
var query = new esri.tasks.Query();
// query.outSpatialReference = {wkid:102100};//空间参考
query.outFields = ["*"];//返回指定字段
query.returnGeometry = true;//返回图形
query.orderByFields = ["OBJECTID"];//排序
query.where = "1=1";
fearturelayer.selectFeatures(query, esri.layers.FeatureLayer.MODE_ONDEMAND, function(results) {
console.log(results.length);
});
function dynamicLayerData(){
var query = new esri.tasks.Query();
// query.outSpatialReference = {wkid:102100};//空间参考
query.outFields = ["*"];//返回指定字段
query.returnGeometry = true;//返回图形
query.orderByFields = ["OBJECTID"];//排序
query.where = "1=1";
fearturelayer.selectFeatures(query, esri.layers.FeatureLayer.MODE_ONDEMAND, function(results) {
console.log(results.length);
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询