包 | com.supermap.web.iServerJava6R.layerServices |
类 | public class ChartFeatureInfoSpecsService |
继承 | ChartFeatureInfoSpecsService ![]() |
通过该服务类可以查询到服务端支持的所有海图物标信息。
用户可以通过两种方式获取查询结果:一种是通过监听 ChartFeatureInfoSpecsEvent.PROCESS_COMPLETE 事件;另一种是使用 AsyncResponder 类实现异步处理。其中 ChartFeatureInfoSpecsEvent 类既存有从服务端获取的原始结果,也包括经客户端处理后的最终结果 ChartFeatureInfoSpecsResult;使用 AsyncResponder 类获取的结果为经客户端处理后的最终结果 ChartFeatureInfoSpecsResult。当用户只需要最终结果时,推荐使用 AsyncResponder 类。
另请参见
属性 | 定义方 | ||
---|---|---|---|
result : ChartFeatureInfoSpecsResult
[read-only] 获取服务端返回的结果信息——ChartFeatureInfoSpecsResult 对象。
|
ChartFeatureInfoSpecsService |
方法 | 定义方 | ||
---|---|---|---|
ChartFeatureInfoSpecsService(url:String)
使用地图(特指海图)服务地址 URL 初始化 ChartFeatureInfoSpecsService 类的新实例。
|
ChartFeatureInfoSpecsService | ||
processAsync(responder:IResponder):AsyncToken
根据地图(特指海图)服务地址与服务端完成异步通讯,获取物标信息。.
|
ChartFeatureInfoSpecsService |
事件 | Summary | 定义方 | ||
---|---|---|---|---|
当与服务端交互失败时触发该事件。 | ChartFeatureInfoSpecsService | |||
当与服务端交互成功时触发该事件。 | ChartFeatureInfoSpecsService |
result | 属性 |
result:ChartFeatureInfoSpecsResult
[read-only]
获取服务端返回的结果信息——ChartFeatureInfoSpecsResult 对象。
public function get result():ChartFeatureInfoSpecsResult
ChartFeatureInfoSpecsService | () | 构造函数 |
public function ChartFeatureInfoSpecsService(url:String)
使用地图(特指海图)服务地址 URL 初始化 ChartFeatureInfoSpecsService 类的新实例。
参数url:String — 地图(特指海图)服务地址。如:"http://localhost:8090/iserver/services/map-ChartW/rest/maps/海图"。 |
processAsync | () | 方法 |
public function processAsync(responder:IResponder):AsyncToken
根据地图(特指海图)服务地址与服务端完成异步通讯,获取物标信息。.
当查询物标信息成功时,将触发 ChartFeatureInfoSpecsEvent.PROCESS_COMPLETE
参数
responder:IResponder — 由 AsyncResponder 类实现异步处理,获取查询结果。远程或异步请求服务完成时将调用的处理函数。使用方法为AsyncResponder(result:Function, fault:Function, token:Object = null) result:Function — 成功完成请求时应调用的函数。必须具有以下签名: public function (result:SetLayerResult, token:Object = null):void; fault:Function — 请求完成但出错时应调用的函数。必须具有以下签名: public function (error:FaultEvent, token:Object = null):void; token:Object (default = null) — 与此请求相关的其他信息。 有关 AsyncResponder 类的详细信息请参见 “ActionScript 语言帮助文档”。 |
AsyncToken — 返回 AsyncToken 对象,它为异步 RPC 操作提供设置额外数据或标记级别数据的位置。它也允许为单独的调用附加 IResponder。可从 token 属性的 ResultEvent 和 FaultEvent 中引用 AsyncToken。有关 AsyncToken 类的详细信息请参见 “ActionScript 语言帮助文档”。 |
fault | 事件 |
mx.rpc.events.FaultEvent
当与服务端交互失败时触发该事件。
processComplete | 事件 |
com.supermap.web.iServerJava6R.serviceEvents.ChartFeatureInfoSpecsEvent
当与服务端交互成功时触发该事件。