Class: DistributedAnalysisView

DistributedAnalysisView

分布式分析组件类。

new DistributedAnalysisView(processingUrl, options)

Usage
import { DistributedAnalysisView } from '@supermapgis/iclient-leaflet';

new DistributedAnalysisView(processingUrl, options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.Components.DistributedAnalysisView({paramsNames});
  // 弃用的写法

  L.supermap.components.distributedAnalysis(processingUrl, options);
</script>
leaflet/components/distributedanalysis/DistributedAnalysisView.js, line 14
Name Type Description
processingUrl string

分布式分析服务地址。

options Object

参数。

Name Type Default Description
position string 'topright' 可选

组件在地图中显示的位置( 'topleft'|'topright'|'bottomleft'|'bottomright' )。

style function 可选

默认图层样式。返回类型:点样式( maker|circleMaker);线和面样式( L.path )。

onEachFeature function 可选

给该元素绑定事件和弹窗。

Version:
  • 9.1.1
Fires

Extends

DistributedAnalysisView -> ComponentsViewBase -> L.Control

Events

analysisfailed

leaflet/components/distributedanalysis/DistributedAnalysisView.js, line 355

分析失败后触发。

Properties:
Name Type Description
error string

服务器返回的错误。

analysissucceeded

leaflet/components/distributedanalysis/DistributedAnalysisView.js, line 342

分析完成后触发。

Properties:
Name Type Description
layer L.GeoJSON

结果图层。

name string

结果图层名称。

layersremoved

leaflet/components/distributedanalysis/DistributedAnalysisView.js, line 369

结果图层删除后触发。

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

被删除的结果图层。

Methods

inherited off(eventType, callback)

leaflet/components/ComponentsViewBase.js, line 78

事件关闭。

Name Type Description
eventType string

监听的事件名。

callback function

监听事件的回调函数。

inherited on(eventType, callback)

leaflet/components/ComponentsViewBase.js, line 68

事件绑定。

Name Type Description
eventType string

监听的事件类型。

callback function

监听事件的回调函数。