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 urlstring 对接的online服务地址
-
request(method, url, param, requestOptions){Promise}
common/online/OnlineServiceBase.js, line 20 -
请求online服务
Name Type Description methodstring 请求方式, 'get','put','post','delete'
urlstring 服务地址
paramObject Url查询参数
requestOptionsObject http请求参数, 比如请求头,超时时间等
Returns:
Type Description Promise 返回包含请求结果的Promise对象