Class: ServiceBase

L.supermap.ServiceBase

L.supermap.ServiceBase(url, options)

ServiceBase.js, line 3

L.supermap Service 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.

Fires

Events

destroy

ServiceBase.js, line 47

Triggered after the resource is successfully released.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

initialized

ServiceBase.js, line 34

Triggered after the constructor is constructed successfully.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

Methods

destroy()

ServiceBase.js, line 42

Disposes the resource. The property that references resource is set to null.