fix(line): 暂时移除掉线点去重的逻辑

This commit is contained in:
thinkinggis 2020-09-09 16:16:25 +08:00
parent 64652bcae3
commit c5d1674435
2 changed files with 3 additions and 3 deletions

View File

@ -214,8 +214,8 @@ export default class Popup extends EventEmitter implements IPopup {
}
// 高德地图需要阻止事件冒泡 // 测试mapbox 地图不需要添加
const { stopPropagation} = this.popupOption;
if(stopPropagation) {
const { stopPropagation } = this.popupOption;
if (stopPropagation) {
['mousemove', 'mousedown', 'mouseup', 'click', 'dblclick'].forEach(
(type) => {
this.container.addEventListener(type, (e) => {

View File

@ -97,7 +97,7 @@ export default class ExtrudePolyline {
this.normal = null;
this.totalDistance = 0;
// 去除数组里重复的点
points = getArrayUnique(points);
// points = getArrayUnique(points);
const total = points.length;
let count = complex.startIndex;
for (let i = 1; i < total; i++) {