new ComputeWeightMatrixParameters(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.ComputeWeightMatrixParameters(options);
  
  // 弃用的写法
  new SuperMap.ComputeWeightMatrixParameters(options);
</script>
// ES6 Import
import { ComputeWeightMatrixParameters } from '@supermapgis/iclient-ol';
new ComputeWeightMatrixParameters(options);
        
        
        
            common/iServer/ComputeWeightMatrixParameters.js, line 7
        
        
    | Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | 参数。 
 | 
Members
- 
    isAnalyzeByIdboolean
- 
    
    是否通过节点 ID 指定路径分析的结点,即通过坐标点指定。 
- 
    nodesArray.<(GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|Array.<number>)>
- 
    
    要计算耗费矩阵的点数组。 当 ComputeWeightMatrixParameters.isAnalyzeById = false 时,nodes 应为点的坐标数组; 当 ComputeWeightMatrixParameters.isAnalyzeById = true 时,nodes 应为点的 ID 数组。 
- 
    parameterTransportationAnalystParameter
- 
    
    交通网络分析通用参数。 
Methods
- 
    destroy()common/iServer/ComputeWeightMatrixParameters.js, line 47
- 
    
    释放资源,将引用资源的属性置空。