Class: OnlineServiceBase

OnlineServiceBase

Online服务基类(使用key作为权限限制的类需要实现此类)

new SuperMap.OnlineServiceBase(options)

common/online/OnlineServiceBase.js, line 6
Name Type Description
options Object

服务参数

Methods

createCredentialUrl(url)

common/online/OnlineServiceBase.js, line 36

追加授权信息

Name Type Description
url string

对接的online服务地址

request(method, url, param, requestOptions){Promise}

common/online/OnlineServiceBase.js, line 20

请求online服务

Name Type Description
method string

请求方式, 'get','put','post','delete'

url string

服务地址

param Object

Url查询参数

requestOptions Object

http请求参数, 比如请求头,超时时间等

Returns:
Type Description
Promise 返回包含请求结果的Promise对象