This commit is contained in:
zh
2025-07-03 15:12:58 +08:00
parent 17d900dcf9
commit fd55e022ae
2395 changed files with 510211 additions and 0 deletions

View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>视频融合</title>
<script src="../sdk/YJEarth.min.js"></script>
<script src="vue.js"></script>
<style>
body {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="app">
</div>
</body>
</html>
<script>
new Vue({
el: "#app",
data: {
},
async mounted() {
await YJ.on({ host: 'http://192.168.112.127:18281', flv: true })
this.createEarth()
},
methods: {
async createEarth() {
window.sdk = new YJ.YJEarth("app")
YJ.Global.CesiumContainer(sdk, {
info: true
})
YJ.Global.flyTo(sdk, {position: { lng: 79.743146, lat: 37.256952, alt: 2000 }})
let BatchLoadObjModel = new YJ.Obj.BatchLoadObjModel(sdk,{code:"653222100010", count: 0})
window.BatchLoadObjModel = BatchLoadObjModel
BatchLoadObjModel.load(()=>{
// BatchLoadObjModel.show = false // 显隐
// BatchLoadObjModel.remove() // 移除
})
}
}
})
</script>