function showBaseThemeMap_ID(baseurl){
var Param = new SuperMap.QueryBySQLParameters({
queryParams: {//查询过滤条件参数
name:"djzq_dt_poi1678_poup@djzq_dt_poi1678_poup",//数据集或者图层名称
attributeFilter:"SMID<2266"//属性过滤条件
}
});
L.supermap
.queryService(baseurl)
.queryBySQL(Param,function(serviceResult) {
var features=serviceResult.result.recordsets[0].features.features;
for(var i=0;i<features.length;i++)
{
delete features[i].type;
delete features[i].id;
}
var geoJSON={'type':'FeatureCollection','features':features};
console.log(geoJSON);
base_ThemeLayer(geoJSON);//执行到这一步的时候报错TypeError: Cannot read property 'recordsets' of undefined,不执行这一步没报错,为什么函数运行的时候会返回去呢?
});
}