|
|
@@ -586,12 +586,14 @@ export default {
|
|
|
const lat = Number(p[1]);
|
|
|
if (Number.isNaN(lng) || Number.isNaN(lat)) continue;
|
|
|
|
|
|
- // 确定圆点类型:第一个为start,最后一个为end,其余为normal
|
|
|
+ // 确定圆点类型:勤务路线保留起终点,干线协调移除起终点图标改为普通节点
|
|
|
let markerType = 'normal';
|
|
|
- if (i === 0) {
|
|
|
- markerType = 'start';
|
|
|
- } else if (i === indices.length - 1) {
|
|
|
- markerType = 'end';
|
|
|
+ if (configName !== '干线协调') {
|
|
|
+ if (i === 0) {
|
|
|
+ markerType = 'start';
|
|
|
+ } else if (i === indices.length - 1) {
|
|
|
+ markerType = 'end';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const marker = this.createTrafficLightMarker([lng, lat], {
|