Class: FindMTSPPathsParameters

FindMTSPPathsParameters

多旅行商分析参数类。

new FindMTSPPathsParameters(options)

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

</script>

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

new FindMTSPPathsParameters(options);

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

参数。

Name Type Default Description
centers Array.<(GeometryPoint|L.LatLng|L.Point|ol.geom.Point|mapboxgl.LngLat|mapboxgl.Point|Array.<number>)>

配送中心集合。

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

配送目标集合。

hasLeastTotalCost boolean false 可选

配送模式是否为总花费最小方案。

isAnalyzeById boolean false 可选

是否通过节点 ID 号来指定配送中心点和配送目的点,即通过坐标点指定。

parameter TransportationAnalystParameter 可选

交通网络分析通用参数。

Members

配送中心集合。 当 FindMTSPPathsParameters.isAnalyzeById = false 时,centers 应为点的坐标数组; 当 FindMTSPPathsParameters.isAnalyzeById = true 时,centers 应为点的 ID 数组。

hasLeastTotalCostboolean

配送模式是否为总花费最小方案。 若为 true,则按照总花费最小的模式进行配送,此时可能会出现某几个配送中心点配送的花费较多而其他配送中心点的花费很少的情况。 若为 false,则为局部最优,此方案会控制每个配送中心点的花费,使各个中心点花费相对平均,此时总花费不一定最小。

isAnalyzeByIdboolean

是否通过节点 ID 号来指定配送中心点和配送目的点,即通过坐标点指定。

配送目标集合。 当 FindMTSPPathsParameters.isAnalyzeById = false 时,nodes 应为点的坐标数组; 当 FindMTSPPathsParameters.isAnalyzeById = true 时,nodes 应为点的 ID 数组。

交通网络分析通用参数。 通过本类可以设置障碍边、障碍点、权值字段信息的名称标识、转向权值字段等信息。 TransportationAnalystParameter 类型,它虽然为可选参数,但是如果不设置其中的 resultSetting 字段,则返回结果空间信息等都为空。

Methods

destroy()

common/iServer/FindMTSPPathsParameters.js, line 66

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