Explorar el Código

矢量查询修改

maxiaoxiao hace 9 meses
padre
commit
33adc2742b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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) => {