Class: ServiceBase

mapboxgl.supermap.ServiceBase

new mapboxgl.supermap.ServiceBase(url, options)

ServiceBase.js, line 4

mapboxgl.supermap base class.

Name Type Description
url string

The url of the service.

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online。

withCredentials boolean false optional

Request whether to carry a cookie.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Fires

Events

initialized

ServiceBase.js, line 23

Triggered after the constructor construct succeeds.

Properties:
Name Type Description
this Object

This object.