소스 검색

标绘的时候禁止点击

CzRger 1 년 전
부모
커밋
92a53e8333
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/gis/layout/tools/tool-draw.ts

+ 1 - 0
src/views/gis/layout/tools/tool-draw.ts

@@ -288,6 +288,7 @@ export const draw = (map, obj) => {
                         geometryFunction: obj.rectangle ? createBox() : null,
                         // geometryFunction: createRegularPolygon(6),
                         style: commonStyle(obj.featureType === 'Point' ? true : false),
+                        stopClick: true
                     });
                     draw.set('showText', obj.featureType === 'Point' ? true : false)
                     draw.set(drawFlag[0], drawFlag[1])