Class: chartService

L.supermap.chartService

海图服务。

L.supermap.chartService(url, options)

leaflet/services/ChartService.js, line 10
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。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Example
L.supermap.chartService(url)
     .queryChart(param,function(result){
         //doSomething
     })

Extends

Events

inherited destroy

leaflet/services/ServiceBase.js, line 54

资源释放成功后触发。

Properties:
Name Type Description
this L.supermap.ServiceBase

this 对象。

inherited initialized

leaflet/services/ServiceBase.js, line 41

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

Properties:
Name Type Description
this L.supermap.ServiceBase

this 对象。

Methods

inherited destroy()

leaflet/services/ServiceBase.js, line 49

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

getChartFeatureInfo(callback)

leaflet/services/ChartService.js, line 62

获取海图物标信息。

Name Type Description
callback RequestCallback

回调函数。

queryChart(params, callback, resultFormat)

leaflet/services/ChartService.js, line 34

查询海图。

Name Type Default Description
params SuperMap.ChartQueryParameters

海图查询所需参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选

返回的结果格式类型。