Class: OnlineServiceBase

SuperMap.OnlineServiceBase

Online service base classes (classes that use keys as permission restrictions need to implement this class)

new SuperMap.OnlineServiceBase(options)

OnlineServiceBase.js, line 7
Name Type Description
options Object

Service parameter.

Name Type Description
crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

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.