Merge branch 'master' of http://106.120.22.35:48888/r/PM20221203225_MobileWeb
| | |
| | | }, |
| | | // 二维底图选择 |
| | | handleEMapClick(result, index) { |
| | | let p = sgworld.Navigate.getCameraInfo(); |
| | | let pitch ; |
| | | if (pitch !== -90) { |
| | | pitch = -90; |
| | | sgworld.Navigate.flyToPointsInterest({ |
| | | destination: new Cesium.Cartesian3.fromDegrees( |
| | | p.location.lon, |
| | | p.location.lat, |
| | | p.location.height |
| | | ), |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), |
| | | pitch: Cesium.Math.toRadians(pitch), |
| | | roll: Cesium.Math.toRadians(0), |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | // 设置相机 |
| | | if (result.name == "二维地图") { |
| | | window.Viewer.scene.globe.maximumScreenSpaceError = 4/3; |
| | |
| | | type: 2, |
| | | title: result.name, |
| | | shade: false, |
| | | area: ["100%", 'auto'], |
| | | area: ["100%", '200px'], |
| | | offset: "r", |
| | | skin: "other-class", |
| | | content: SmartEarthRootUrl + "Workers/path/Path.html", |
| | |
| | | res = data.data.url.replace("ws://10.117.5.46:559/", "wss://skyzt.bda.gov.cn:443/") |
| | | } else if (data.data.url.includes("47")) { |
| | | res = data.data.url.replace("ws://10.117.5.47:559/", "wss://skyzt.bda.gov.cn:443/") |
| | | } else if (data.data.url.includes("206")) { |
| | | } else if (data.data.url.includes("28")) { |
| | | res = data.data.url.replace("ws://10.117.5.28:559/", "wss://skyzt.bda.gov.cn:443/")//视频最新返回地址 |
| | | } |
| | | realplay(res); |
| | | |
| | | } catch (e) { } |
| | | } |
| | | }); |