Class: NetworkAnalyst3DService

mapboxgl.supermap.NetworkAnalyst3DService

The NetworkAnalyst3DService class.

new mapboxgl.supermap.NetworkAnalyst3DService(url, options)

NetworkAnalyst3DService.js, line 12
Name Type Description
url string

The url of service. The url should be:
Http://{server address}: {service port number}/iserver/services/{network analysis service name}/rest/networkanalyst/{network dataset@data source}. For example:"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.

withCredentials boolean false optional

Request whether to carry a cookie.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Example
new mapboxgl.supermap.NetworkAnalyst3DService(url)
 .sinksFacilityAnalyst(params,function(result){
    //doSomething
})

Extends

Events

inherited initialized

ServiceBase.js, line 23

Triggered after the constructor construct succeeds.

Properties:
Name Type Description
this Object

This object.

Methods

sinksFacilityAnalyst(params, callback){mapboxgl.supermap.NetworkAnalyst3DService}

NetworkAnalyst3DService.js, line 38

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.

Returns:
Type Description
mapboxgl.supermap.NetworkAnalyst3DService 3D network analysis services.

sourcesFacilityAnalyst(params, callback){mapboxgl.supermap.NetworkAnalyst3DService}

NetworkAnalyst3DService.js, line 60

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
mapboxgl.supermap.NetworkAnalyst3DService 3D network analysis services.

traceDownFacilityAnalyst(params, callback){mapboxgl.supermap.NetworkAnalyst3DService}

NetworkAnalyst3DService.js, line 105

Trace downstream facility.

Name Type Description
params SuperMap.FacilityAnalystTracedown3DParameters

The FacilityAnalystTracedown3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.

Returns:
Type Description
mapboxgl.supermap.NetworkAnalyst3DService 3D network analysis services.

traceUpFacilityAnalyst(params, callback){mapboxgl.supermap.NetworkAnalyst3DService}

NetworkAnalyst3DService.js, line 82

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
mapboxgl.supermap.NetworkAnalyst3DService 3D network analysis services.

upstreamFacilityAnalyst(params, callback){mapboxgl.supermap.NetworkAnalyst3DService}

NetworkAnalyst3DService.js, line 127

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.

Returns:
Type Description
mapboxgl.supermap.NetworkAnalyst3DService 3D network analysis services.