SQL 查询服务类构造函数。
例如:
var queryParam = new SuperMap.REST.FilterParameter({
name: "Countries@World.1",
attributeFilter: "Pop_1994>1000000000 and SmArea>900"
});
var queryBySQLParams = new SuperMap.REST.QueryBySQLParameters({
queryParams: [queryParam]
});
var myQueryBySQLService = new SuperMap.REST.QueryBySQLService(url, {eventListeners: {
"processCompleted": queryCompleted,
"processFailed": queryError
}
});
queryBySQLService.processAsync(queryBySQLParams);
function queryCompleted(QueryEventArgs){//todo};
function queryError(QueryEventArgs){//todo};
Parameters
Allowed options properties
eventListeners |
{Object} 需要被注册的监听器对象。 |