Class: ChartService

ol.supermap.ChartService

海图服务。

new ol.supermap.ChartService(url, options)

openlayers/services/ChartService.js, line 8
Name Type Description
url string

与客户端交互的海图服务地址。

options Object

参数。

Name Type Default Description
proxy string 可选

服务代理地址。

withCredentials boolean false 可选

请求是否携带 cookie。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Example
new ol.supermap.ChartService(url)
     .queryChart(param,function(result){
         //doSomething
     })

Extends

Methods

getChartFeatureInfo(callback)

openlayers/services/ChartService.js, line 59

获取海图物标信息服务。

Name Type Description
callback RequestCallback

回调函数。

queryChart(params, callback, resultFormat)

openlayers/services/ChartService.js, line 31

查询海图服务。

Name Type Description
params SuperMap.ChartQueryParameters

海图查询所需参数类。

callback RequestCallback

回调函数。

resultFormat SuperMap.DataFormat

返回的结果格式类型。