new SuperMap.iPortalServiceBase(url, options)
iPortalServiceBase.js, line 7
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
iPortal service URL. |
||||||||||||||||
options |
Object |
Optional parameters.
|
Methods
-
createCredentialUrl(url){string}
iPortalServiceBase.js, line 43 -
Additional authorization information.
Name Type Description url
string Create a certificate URL address.
Returns:
Type Description string The new address that carries the token or key. -
getCredential(){string}
iPortalServiceBase.js, line 69 -
Get token.
Returns:
Type Description string Return the token obtained. -
getKey()
iPortalServiceBase.js, line 88 -
Its subclasses need to override the method, modify the key field, save the key may be the service id field, may be URL.
-
request(method, url, param, requestOptions){Promise}
iPortalServiceBase.js, line 25 -
Subclasses use this method to send requests uniformly.
Name Type Default Description method
string 'GET' optional Request type.
url
string Service address.
param
Object Request parameters.
requestOptions
Object optional fetch request configuration item.
Returns:
Type Description Promise Returns the Promise object containing the result of the request.