| | |
| | | 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){ |
| | | |
| | | mapInfo.setRestLayer(); |
| | | 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")) { |
| | | var name = nPickFeature.getProperty("name"); |
| | | if (name == "DLJQT0007") { |
| | | store.state.isShowVideo = true; |
| | | } else if (name == "sensor001") { |
| | | |
| | | } else if (name == "DLLMJ0001") { |
| | | store.state.isireamUrl = "/Data/html/hd3dmap.html?id=3493&type=8"; |
| | | store.state.isShowMenuCount = true; |
| | | } |
| | | } |
| | | |
| | | } |
| | | if(store.state.isQueryFalag){ |
| | | console.log(coordinate) |
| | | if (store.state.isQueryFalag) { |
| | | |
| | | store.state.isQyeryCoord = coordinate; |
| | | } |
| | | |