arcgis api for js 属性过滤显示

var querysql=sqlTxt.val();

//图层过滤

lyr.layer.setDefinitionExpression();

 

//属性表显示

var query = new esri.tasks.Query();

query.returnGeometry = true;

query.outFields = ["*"];

query.where = querysql;

var queryTask = new esri.tasks.QueryTask(lyr.layer.url);
queryTask.execute(query, fillTableWithData.bind(this));

 

展开阅读全文

没有更多推荐了,返回首页