new ClientComputationView(workerUrl, options)
Usage
import { ClientComputationView } from '@supermapgis/iclient-leaflet';
new ClientComputationView(workerUrl, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.Components.ClientComputationView({paramsNames});
// 弃用的写法
L.supermap.components.clientComputation(workerUrl, options);
</script>
leaflet/components/clientcomputation/ClientComputationView.js, line 12
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
workerUrl |
string |
worker 地址,原始位置为 dist/leaflet/workers/TurfWorker.js。 |
||||||||||||||||
options |
Object |
参数。
|
- Version:
- 9.1.1
Fires
Extends
ClientComputationView
-> ComponentsViewBase
-> L.Control
Events
-
analysisfailed
leaflet/components/clientcomputation/ClientComputationView.js, line 515 -
分析失败之后触发。
-
analysissucceeded
leaflet/components/clientcomputation/ClientComputationView.js, line 502 -
分析完成之后触发。
Properties:
Name Type Description layerL.GeoJSON 加载完成后的结果图层。
namestring 加载完成后的结果图层名称。
-
layersremoved
leaflet/components/clientcomputation/ClientComputationView.js, line 530 -
结果图层删除后触发。
Properties:
Name Type Description layersArray.<L.GeoJSON> 被删除的结果图层。
Methods
-
addLayer()
leaflet/components/clientcomputation/ClientComputationView.js, line 50 -
添加叠加图层。
-
inherited off(eventType, callback)
leaflet/components/ComponentsViewBase.js, line 78 -
事件关闭。
Name Type Description eventTypestring 监听的事件名。
callbackfunction 监听事件的回调函数。
-
inherited on(eventType, callback)
leaflet/components/ComponentsViewBase.js, line 68 -
事件绑定。
Name Type Description eventTypestring 监听的事件类型。
callbackfunction 监听事件的回调函数。