|
@@ -1,5 +1,7 @@
|
|
|
let handler_cockpit = null;
|
|
|
|
|
|
+import store from '../../../store/store.js'
|
|
|
+
|
|
|
|
|
|
|
|
|
export const init_handler = () => {
|
|
@@ -27,14 +29,19 @@ export const init_handler = () => {
|
|
|
position = Cesium.Cartesian3.fromDegrees(0, 0, 0);
|
|
|
}
|
|
|
if (Cesium.defined(pickObj)) {
|
|
|
-
|
|
|
+ let obj = {}
|
|
|
+ let arr = [];
|
|
|
if (pickObj.primitive instanceof Cesium.Primitive && pickObj.id.properties && pickObj.id.properties.type == '国有建设用地完成项目') {//点击primitive
|
|
|
//primitive相关操作
|
|
|
let propertyNames = pickObj.id.properties.propertyNames
|
|
|
propertyNames.forEach((res) => {
|
|
|
- console.log(res,pickObj.id.properties[res]._value);
|
|
|
-
|
|
|
+ arr.push({
|
|
|
+ "name":res,
|
|
|
+ "value":pickObj.id.properties[res]._value,
|
|
|
+ });
|
|
|
})
|
|
|
+
|
|
|
+ store.state.vectorData = arr;
|
|
|
}
|
|
|
|
|
|
handler_cockpit.destroy();
|