| | |
| | | this.leftClick.setInputAction(function (event) { |
| | | let nPickFeature = Viewer.scene.pick(event.position); |
| | | let cartesian = window.Viewer.camera.pickEllipsoid(event.position); |
| | | |
| | | |
| | | let cartographic = Cesium.Cartographic.fromCartesian(cartesian); |
| | | let lng = Cesium.Math.toDegrees(cartographic.longitude); // 经度 |
| | | let lat = Cesium.Math.toDegrees(cartographic.latitude); // 纬度 |
| | |
| | | model.setModelCoord(coordinate); |
| | | |
| | | } |
| | | if(store.state.isMeasureFlag){ |
| | | if (store.state.isMeasureFlag) { |
| | | store.state.measureCoordObj = coordinate; |
| | | store.state.isShowMeasureCoord= true; |
| | | store.state.isShowMeasureCoord = true; |
| | | } |
| | | if (Cesium.defined(nPickFeature)) { |
| | | if(nPickFeature.id && nPickFeature.id.properties){ |
| | | console.log(nPickFeature); |
| | | if (nPickFeature.id && nPickFeature.id.id == 'Rectangle') |
| | | return |
| | | if (nPickFeature.id && nPickFeature.id.properties) { |
| | | mapInfo.setGeoJsonInfo(nPickFeature.id.properties) |
| | | }else if(nPickFeature && nPickFeature.getProperty("name")){ |
| | | if(nPickFeature.getProperty("name") == "DLJQT0007"){ |
| | | store.state.isShowVideo= true; |
| | | } else if (nPickFeature && nPickFeature.getProperty("name")) { |
| | | if (nPickFeature.getProperty("name") == "DLJQT0007") { |
| | | store.state.isShowVideo = true; |
| | | } |
| | | } |
| | | } |
| | | if(store.state.isQueryFalag){ |
| | | |
| | | if (store.state.isQueryFalag) { |
| | | |
| | | store.state.isQyeryCoord = coordinate; |
| | | } |
| | | |