new SuperMap.iPortalService(seviceUrl, params)
iPortalService.js, line 5
Name | Type | Description |
---|---|---|
seviceUrl |
string |
Service address. |
params |
Object |
Service request parameters. |
Extends
Methods
-
inherited createCredentialUrl(url){string}
iPortalServiceBase.js, line 39 -
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. -
inherited getCredential(){string}
iPortalServiceBase.js, line 65 -
Get token.
Returns:
Type Description string Return the token obtained. -
inherited getKey()
iPortalServiceBase.js, line 84 -
Its subclasses need to override the method, modify the key field, save the key may be the service id field, may be URL.
-
load(){Promise}
iPortalService.js, line 55 -
Load service information.
Returns:
Type Description Promise Returns the Promise object. If successful, Promise does not return a value; if it fails, the Promise return value contains an error message. -
inherited request(method, url, param, requestOptions){Promise}
iPortalServiceBase.js, line 21 -
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. -
update(){Promise}
iPortalService.js, line 74 -
Update service.
Returns:
Type Description Promise Returns a Promise object containing the status of the update operation.