Selaa lähdekoodia

标绘的时候禁止点击

CzRger 1 vuosi sitten
vanhempi
commit
92a53e8333
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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])