Files
sdk4_demo/example/批量视频融合.html

51 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2025-07-03 15:12:58 +08:00
<!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>