Class: iPortal

SuperMap.iPortal

Docking SuperMap iPortal Basic Services.

new SuperMap.iPortal(iportalUrl)

iPortal.js, line 9
Name Type Description
iportalUrl string

URL of the service.

Extends

Methods

inherited 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.

deleteServices(ids){Promise}

iPortal.js, line 54

Delete service.

Name Type Description
ids Array

Service serial number.

Returns:
Type Description
Promise Returns a promise object that contains the status of the service delete operation.

inherited getCredential(){string}

iPortalServiceBase.js, line 69

Get token.

Returns:
Type Description
string Return the token obtained.

inherited 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.

load(){Promise}

iPortal.js, line 24

Load the page.

Returns:
Type Description
Promise Returns a promise object that contains iportal web resource information

queryMaps(queryParams){Promise}

iPortal.js, line 65

Get information of the map.

Name Type Description
queryParams SuperMap.iPortalMapsQueryParam

The iPortalMapsQueryParam class.

Returns:
Type Description
Promise Returns a Promise object that contains all of the map service's information.

queryServices(queryParams){Promise}

iPortal.js, line 33

Query service.

Name Type Description
queryParams SuperMap.iPortalServicesQueryParam

The iPortalServicesQueryParam class.

Returns:
Type Description
Promise Returns a promise object that contains all the services.

inherited 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.