SuperMap.REST.GetFeaturesByBoundsService

数据集范围查询服务类 查询与指定范围对象符合一定空间关系的矢量要素。

Inherits from

Summary
SuperMap.REST.GetFeaturesByBoundsService 数据集范围查询服务类 查询与指定范围对象符合一定空间关系的矢量要素。
Constructor
SuperMap.REST.GetFeaturesByBoundsService 数据集范围查询服务类构造函数。
Functions
destroy 释放资源,将引用资源的属性置空。

Constructor

SuperMap.REST.GetFeaturesByBoundsService

数据集范围查询服务类构造函数。

例如:

var myGetFeaturesByBoundsService = new SuperMap.REST.GetFeaturesByBoundsService(url, {
    eventListeners: {
          "processCompleted": getFeatureCompleted,
          "processFailed": getFeatureError
          }
});
function getFeatureCompleted(GetFeaturesEventArgs){//todo};
function getFeatureError(GetFeaturesEventArgs){//todo}

Parameters

url {String} 数据查询结果资源地址。请求数据服务中数据集查询服务, URL 应为:http://{服务器地址}:{服务端口号}/iserver/services/{数据服务名}/rest/data/; 例如:”http://localhost:8090/iserver/services/data-jingjin/rest/data/
options {Object} 参数。

Allowed options properties

eventListeners {Object} 需要被注册的监听器对象。

Functions

destroy

destroy:function()

释放资源,将引用资源的属性置空。

destroy:function()
释放资源,将引用资源的属性置空。
数据服务中数据集查询服务基类。 查询结果通过该类支持的事件的监听函数参数获取,参数类型为 {SuperMap.REST.GetFeaturesEventArgs}; 获取的结果数据包括 result 、originResult 两种, 其中,originResult 为服务端返回的用 JSON 对象表示的查询结果数据,result 为服务端返回的查询结果数据,保存在 {SuperMap.REST.GetFeaturesResult} 对象中。
Close