new SuperMap.OnlineServiceBase(options)
OnlineServiceBase.js, line 7
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Service parameter.
|
Methods
-
createCredentialUrl(url)
OnlineServiceBase.js, line 40 -
Additional authorization information.
Name Type Description url
string Docking online service address.
-
request(method, url, param, requestOptions){Promise}
OnlineServiceBase.js, line 24 -
Request online service.
Name Type Default Description method
string 'GET' optional Request method, 'GET', 'PUT', 'POST', 'DELETE'
url
string Service address.
param
Object Url query parameters.
requestOptions
Object optional http request parameters, such as the request header, timeout and so on.
Returns:
Type Description Promise Returns the Promise object containing the result of the request.