Class: addressMatchService

L.supermap.addressMatchService

地址匹配服务。

L.supermap.addressMatchService(url, options)

leaflet/services/AddressMatchService.js, line 9
Name Type Description
url string

地址匹配服务地址。

options Object

参数。

Name Type Default Description
proxy string 可选

服务代理地址。

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER 可选

服务来源 iServer|iPortal|online。

withCredentials boolean false 可选

请求是否携带 cookie。

Example
L.supermap.addressMatchService(url,options)
     .code(function(result){
         //doSomething
     })

Extends

Events

inherited destroy

leaflet/services/ServiceBase.js, line 51

资源释放成功后触发。

Properties:
Name Type Description
this L.supermap.ServiceBase

this 对象。

inherited initialized

leaflet/services/ServiceBase.js, line 38

构造函数构造成功后触发。

Properties:
Name Type Description
this L.supermap.ServiceBase

this 对象。

Methods

code(params, callback)

leaflet/services/AddressMatchService.js, line 32

获取正向地址匹配结果。

Name Type Description
params SuperMap.GeoCodingParameter

正向匹配参数。

callback RequestCallback

请求结果的回调函数。

decode(params, callback)

leaflet/services/AddressMatchService.js, line 53

获取反向地址匹配结果。

Name Type Description
params SuperMap.GeoDecodingParameter

反向匹配参数。

callback RequestCallback

请求结果的回调函数。

inherited destroy()

leaflet/services/ServiceBase.js, line 46

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