Class: NetworkAnalyst3DService

ol.supermap.NetworkAnalyst3DService

The NetworkAnalyst3DService class.

new ol.supermap.NetworkAnalyst3DService(url, options)

NetworkAnalyst3DService.js, line 11
Name Type Description
url string

The url of service. The url should be:
http://{service URL}:{server port}/iserver/services/{NetworkAnalystService name}/rest/networkanalyst/{dataSet name@dataSource name};
For instance:"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.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

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

Extends

Methods

sinksFacilityAnalyst(params-, callback){ol.supermap.NetworkAnalyst3DService}

NetworkAnalyst3DService.js, line 37

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
ol.supermap.NetworkAnalyst3DService The NetworkAnalyst3DService class.

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

NetworkAnalyst3DService.js, line 59

Analyse the sinks facility.

Name Type Description
params SuperMap.FacilityAnalystSources3DParameters

The FacilityAnalystSinks3DParameters class.

callback RequestCallback

The callback of result data returned by the server side.

Returns:
Type Description
ol.supermap.NetworkAnalyst3DService The NetworkAnalyst3DService class.

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

NetworkAnalyst3DService.js, line 104

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
ol.supermap.NetworkAnalyst3DService The NetworkAnalyst3DService class

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

NetworkAnalyst3DService.js, line 81

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
ol.supermap.NetworkAnalyst3DService The NetworkAnalyst3DService class.

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

NetworkAnalyst3DService.js, line 126

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
ol.supermap.NetworkAnalyst3DService The NetworkAnalyst3DService class.