SuperMap.REST.QueryByDistanceService

Distance查询服务类。

Inherits from

Summary
SuperMap.REST.QueryByDistanceService Distance查询服务类。
Constructor
SuperMap.REST.QueryByDistanceService Distance查询服务类构造函数。
Functions
destroy 释放资源,将引用资源的属性置空。

Constructor

SuperMap.REST.QueryByDistanceService

Distance查询服务类构造函数。

例如:

var myQueryByDistService = new SuperMap.REST.QueryByDistanceService(url, {
    eventListeners: {
        "processCompleted": queryCompleted,
        "processFailed": queryError
        }
});
function queryCompleted(QueryEventArgs){//todo};
function queryError(QueryEventArgs){//todo};

Parameters

url {String} 服务的访问地址。如访问World Map服务,只需将url设为:http://localhost:8090/iserver/services/map-world/rest/maps/World+Map 即可。
options {Object} 参数。

Allowed options properties

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

Functions

destroy

destroy: function()

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

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