Class: ComputeWeightMatrixParameters

ComputeWeightMatrixParameters

耗费矩阵分析参数类。根据交通网络分析参数中的耗费字段返回一个耗费矩阵。该矩阵是一个二维数组,用来存储任意两点间的资源消耗。

new ComputeWeightMatrixParameters(options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.ComputeWeightMatrixParameters(options);
  
  // 弃用的写法
  new SuperMap.ComputeWeightMatrixParameters(options);

</script>

// ES6 Import
import { ComputeWeightMatrixParameters } from '@supermap/iclient-leaflet';

new ComputeWeightMatrixParameters(options);

common/iServer/ComputeWeightMatrixParameters.js, line 7
Name Type Description
options Object

参数。

Name Type Default Description
isAnalyzeById boolean false 可选

是否通过节点 ID 指定路径分析的结点。

nodes Array.<(GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>)>

要计算耗费矩阵的点数组。

parameter TransportationAnalystParameter 可选

交通网络分析通用参数。

Members

isAnalyzeByIdboolean

是否通过节点 ID 指定路径分析的结点,即通过坐标点指定。

要计算耗费矩阵的点数组。 当 ComputeWeightMatrixParameters.isAnalyzeById = false 时,nodes 应为点的坐标数组; 当 ComputeWeightMatrixParameters.isAnalyzeById = true 时,nodes 应为点的 ID 数组。

交通网络分析通用参数。

Methods

destroy()

common/iServer/ComputeWeightMatrixParameters.js, line 47

释放资源,将引用资源的属性置空。