Class: networkAnalyst3DService

L.supermap.networkAnalyst3DService

The NetworkAnalyst3DService class.

L.supermap.networkAnalyst3DService(url, options)

NetworkAnalyst3DService.js, line 12
Name Type Description
url string

he url of service. The url should be:
"http://localhost:8090/iserver/services/components-rest/rest/networkanalyst/RoadNet@Changchun"。

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.

Example
L.supermap.networkAnalyst3DService(url)
 .sinksFacilityAnalyst(params,function(result){
    //doSomething
})

Extends

Events

inherited destroy

ServiceBase.js, line 47

Triggered after the resource is successfully released.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

inherited initialized

ServiceBase.js, line 34

Triggered after the constructor is constructed successfully.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

Methods

inherited destroy()

ServiceBase.js, line 42

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

sinksFacilityAnalyst(params, callback)

NetworkAnalyst3DService.js, line 35

Analyse the sinks facility.

Name Type Description
params SuperMap.FacilityAnalystSinks3DParameters

The FacilityAnalystSinks3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.

sourcesFacilityAnalyst(params, callback){this}

NetworkAnalyst3DService.js, line 56

Analyse the source facility.

Name Type Description
params SuperMap.FacilityAnalystSources3DParameters

The FacilityAnalystSources3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.

Returns:
Type Description
this this

traceDownFacilityAnalyst(params, callback)

NetworkAnalyst3DService.js, line 100

Trace downstream facility.

Name Type Description
params SuperMap.FacilityAnalystTracedown3DParameters

The FacilityAnalystTracedown3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.

traceUpFacilityAnalyst(params, callback){this}

NetworkAnalyst3DService.js, line 78

Trace upstream facility.

Name Type Description
params SuperMap.FacilityAnalystTraceup3DParameters

The FacilityAnalystTraceup3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.

Returns:
Type Description
this this

upstreamFacilityAnalyst(params, callback)

NetworkAnalyst3DService.js, line 121

Trace upstream key facility.

Name Type Description
params SuperMap.FacilityAnalystUpstream3DParameters

The FacilityAnalystUpstream3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.