提交
This commit is contained in:
51
example/批量视频融合.html
Normal file
51
example/批量视频融合.html
Normal 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>
|
Reference in New Issue
Block a user