北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
lixuliang
2024-01-19 1de23a596f1457db2ea9861645a568e779d7664f
src/utils/map.js
@@ -614,7 +614,7 @@
                    })
            }
            let nPickFeature = sgworld.Viewer.scene.pick(event.position);
            // console.log(nPickFeature);
            console.log(nPickFeature);
            // console.log(event.position);//屏幕位置
            if (!nPickFeature || !nPickFeature.id) {
                return
@@ -660,11 +660,10 @@
                nPickFeature.primitive.scale = 1;
                nPickFeature.primitive.image =
                    window.SmartEarthRootUrl + "Workers/image/point.png";
                //点击弹框
                //点击弹框(部件、企业、监控)
                if (nPickFeature.id.tag) {
                    let properties = nPickFeature.id.properties;
                    let propertyNames = nPickFeature.id.properties.propertyNames;
                    if (propertyNames.indexOf("监控名") !== -1) {
                        // objdata = {
                        //     POITYPE: "SPJK",
@@ -742,8 +741,6 @@
                            lat: lat,
                        }
                    }
                    divPoint3 && divPoint3.deleteObject();
                    store.setPoplayerShowAction(false);
                    store.setPoplayerListAction({});
@@ -782,6 +779,7 @@
                    });
                    return;
                }
                //
            }
            // if (nPickFeature.id && nPickFeature.id.name.indexOf('YINJ') != -1) {
            //     divPoint3 && divPoint3.deleteObject();