Class: distributedAnalysisViewModel

distributedAnalysisViewModel

Distributed analysis ViewModel。

Extends

distributedAnalysisViewModel -> L.Evented

Events

analysisfailed

DistributedAnalysisViewModel.js, line 87

Triggered after the analysis failed.

analysissucceeded

DistributedAnalysisViewModel.js, line 100

The data returned by the server after successful analysis.

datasetinfoloaded

DistributedAnalysisViewModel.js, line 61

Triggered after the dataset type and field get completed.

Properties:
Name Type Description
result Object

The data of the data set.

Properties
Name Type Description
type string

The data set type.

fields Array.<string>

The field contained in the dataset.

datasetsloaded

DistributedAnalysisViewModel.js, line 40

Triggered after the data set is acquired.

Properties:
Name Type Description
result Object

Data set data.

layerloaded

DistributedAnalysisViewModel.js, line 108

The analysis result is triggered after the layer loading is completed.

Properties:
Name Type Description
layer L.GeoJSON

The result layer.

name string

The result layer name.

layersremoved

DistributedAnalysisViewModel.js, line 133

Triggered after the layer is deleted.

Properties:
Name Type Description
layers Array.<L.GeoJSON>

The result layer array.

Methods

analysis(params, map)

DistributedAnalysisViewModel.js, line 72

Distributed analysis .

Name Type Description
params Object.<(L.supermap.KernelDensityJobParameter|string)>

parameters.

Name Type Description
analysisParam L.supermap.KernelDensityJobParameter

Distributed analysis parameters.

resultLayerName string optional

The result layer name.

map L.Map

Leaflet Map object.

clearLayers()

DistributedAnalysisViewModel.js, line 125

Clear the analysis layer.

getDatasetInfo(datasetUrl)

DistributedAnalysisViewModel.js, line 49

Get the dataset type and fields.

Name Type Description
datasetUrl string

The resource address of the data set.

getDatasetsName(url)

DistributedAnalysisViewModel.js, line 27

Get all data set names.

Name Type Description
url string

Distributed analysis address.