new SuperMap.iPortalMap(mapUrl, params)
iPortalMap.js, line 5
| Name | Type | Description |
|---|---|---|
mapUrl |
string |
Url of the map. |
params |
Object |
optional
The parameter of the service. |
Extends
Methods
-
inherited createCredentialUrl(url){string}
iPortalServiceBase.js, line 43 -
Additional authorization information.
Name Type Description urlstring Create a certificate URL address.
Returns:
Type Description string The new address that carries the token or key. -
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}
iPortalMap.js, line 49 -
Load map information.
Returns:
Type Description Promise Returns the Promise object. If successful, Promise does not return a value, the request returns the result automatically populated into the properties of this class; if it fails, the Promise return value contains the error message. -
inherited request(method, url, param, requestOptions){Promise}
iPortalServiceBase.js, line 25 -
Subclasses use this method to send requests uniformly.
Name Type Default Description methodstring 'GET' optional Request type.
urlstring Service address.
paramObject Request parameters.
requestOptionsObject optional fetch request configuration item.
Returns:
Type Description Promise Returns the Promise object containing the result of the request. -
update(){Promise}
iPortalMap.js, line 67 -
Update map parameters.
Returns:
Type Description Promise Returns a promise object containing the status of the update operation.