Browse Source

矢量查询修改

maxiaoxiao 8 months ago
parent
commit
33adc2742b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/Query/clickQuery/pick_cockpit_vector.js

+ 2 - 1
src/components/Query/clickQuery/pick_cockpit_vector.js

@@ -31,7 +31,8 @@ export const init_handler = () => {
         if (Cesium.defined(pickObj)) {
             let obj = {}
             let arr = [];
-            if (pickObj.primitive instanceof Cesium.Primitive && pickObj.id.properties && pickObj.id.properties.type._value == '图斑上图') {//点击primitive
+            // pickObj.primitive instanceof Cesium.Primitive &&
+            if (pickObj.id.properties && pickObj.id.properties.type._value == '图斑上图') {//点击primitive
                 // primitive相关操作
                 let propertyNames = pickObj.id.properties.propertyNames
                 propertyNames.forEach((res) => {