Riku
2025-06-11 5679cbbb630092a197d991cb41997a2d953261e9
src/utils/map/line.js
@@ -9,7 +9,8 @@
  // eslint-disable-next-line no-undef
  return new AMap.Polyline({
    path: path,
    strokeStyle: 'solid',
    // strokeStyle: 'solid',
    strokeStyle: 'dashed',
    isOutline: true,
    borderWeight: 1,
    outlineColor: 'white',
@@ -18,6 +19,12 @@
    lineJoin: 'round', // 折线拐点连接处样式
    showDir: true
  });
}
function drawDirection(path) {
  const polyline = newPolyline(path, '#ffd82a');
  map.add(polyline);
  return polyline;
}
export default {
@@ -105,5 +112,7 @@
        map.remove(v);
      });
    }
  }
  },
  drawDirection
};