L.supermap.components.distributedAnalysisViewModel(processingUrl)
| Name | Type | Description |
|---|---|---|
processingUrl |
string |
Distributed analysis address. |
- Version:
- 9.1.1
Fires
- L.supermap.components.distributedAnalysisViewModel#event:datasetsloaded
- L.supermap.components.distributedAnalysisViewModel#event:datasetinfoloaded
- L.supermap.components.distributedAnalysisViewModel#event:analysisfailed
- L.supermap.components.distributedAnalysisViewModel#event:analysissucceeded
- L.supermap.components.distributedAnalysisViewModel#event:layerloaded
- L.supermap.components.distributedAnalysisViewModel#event:layersremoved
Extends
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 resultObject The data of the data set.
Properties
Name Type Description typestring The data set type.
fieldsArray.<string> The field contained in the dataset.
-
datasetsloaded
DistributedAnalysisViewModel.js, line 40 -
Triggered after the data set is acquired.
Properties:
Name Type Description resultObject Data set data.
-
layerloaded
DistributedAnalysisViewModel.js, line 108 -
The analysis result is triggered after the layer loading is completed.
Properties:
Name Type Description layerL.GeoJSON The result layer.
namestring The result layer name.
-
layersremoved
DistributedAnalysisViewModel.js, line 133 -
Triggered after the layer is deleted.
Properties:
Name Type Description layersArray.<L.GeoJSON> The result layer array.
Methods
-
analysis(params, map)
DistributedAnalysisViewModel.js, line 72 -
Distributed analysis .
Name Type Description paramsObject.<(L.supermap.KernelDensityJobParameter|string)> parameters.
Name Type Description analysisParamL.supermap.KernelDensityJobParameter Distributed analysis parameters.
resultLayerNamestring optional The result layer name.
mapL.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 datasetUrlstring The resource address of the data set.
-
getDatasetsName(url)
DistributedAnalysisViewModel.js, line 27 -
Get all data set names.
Name Type Description urlstring Distributed analysis address.