var drawCircle = new SuperMap.Control.DrawFeature(circleLayer, SuperMap.Handler.RegularPolygon, {handlerOptions: {sides: 50}});
drawCircle.events.on({"featureadded": function (drawGeometryArgs) {
drawCircle.deactivate();
var sql = "SITEID>0";
var queryByGeometryParameters, queryService;
queryByGeometryParameters = new SuperMap.REST.GetFeaturesByGeometryParameters({
datasetNames: ["lwjc:view_base_bridge"],
fields: ["SITEID","layer_type","BRIDGE_NAME","START_STAKE","END_STAKE"],
attributeFilter: sql,
spatialQueryMode: SuperMap.REST.SpatialQueryMode.INTERSECT,
geometry: geometry
});
queryService = new SuperMap.REST.GetFeaturesByGeometryService(queryUrl, {
eventListeners: {
"processCompleted": function (featureSet) {
if(flag){
callback && callback(featureSet);
}else{
queryCallback(featureSet, map, layerConfig, callback);
}
},
"processFailed": function (e) {
console.log(e.error.errorMsg);
}
}
});
queryService.processAsync(queryByGeometryParameters);
}
}});
使用该方法查询点图层,总是查询不到数据,数据个数为零,请问是什么原因