update code
parent
d2dd829de2
commit
e5da4919b1
|
@ -8,4 +8,5 @@ window.mapModels=[{
|
|||
prjName:'云和悦小区',
|
||||
modelId:'3a0d876b-fcf5-56ff-0efb-89c065ffa637',
|
||||
root:'http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202309082236347836/root.glt',
|
||||
view:{"heading":6.230452905608175,"pitch":-0.3167924920463947,"position":[1.9004702833791862,0.5968788844434487,79.92399569771715],"headingDegrees":356.9786559463691,"pitchDegrees":-18.150872775690118,"positionWC":{"x":-1709632.984691206,"y":4996580.328805909,"z":3564737.175898937}}
|
||||
}];
|
||||
|
|
|
@ -109,14 +109,33 @@ export default {
|
|||
this.mapInfo.root,
|
||||
this.mapInfo.modelId,
|
||||
null,
|
||||
function (data) {
|
||||
(data)=> {
|
||||
if (Cesium.defined(data)) {
|
||||
if (Cesium.defined(data.obj) && data.obj instanceof Cesium.Cesium3DTileset) {
|
||||
console.log(data);
|
||||
setTimeout(()=>{
|
||||
if(this.mapInfo.view){
|
||||
let v=this.mapInfo.view;
|
||||
window.mapApi.Camera.setViewPort(v.position,v.heading,v.pitch);
|
||||
this.timer=setInterval(()=>{
|
||||
window.mapApi.Model.rotate(1,this.mapInfo.modelId);
|
||||
},50);
|
||||
$("#cesium-plugin-cube_cesiumContainer").hide();
|
||||
$("#cesiumContainer").mouseover(()=>{
|
||||
clearInterval(this.timer);
|
||||
$("#cesium-plugin-cube_cesiumContainer").show();
|
||||
}).mouseout(()=>{
|
||||
$("#cesium-plugin-cube_cesiumContainer").hide();
|
||||
this.timer=setInterval(()=>{
|
||||
window.mapApi.Model.rotate(1,this.mapInfo.modelId);
|
||||
},50);
|
||||
});
|
||||
}
|
||||
},3000)
|
||||
}
|
||||
}
|
||||
},
|
||||
function (data) {
|
||||
(data)=>{
|
||||
$("#box,#LoadingShadow").hide()
|
||||
});
|
||||
window.mapApi.Public.Event("LEFT_CLICK", function (click) {
|
||||
|
@ -139,4 +158,7 @@ export default {
|
|||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
#cesium-plugin-cube_cesiumContainer{
|
||||
transform: scale(0.6);
|
||||
}
|
||||
</style>
|
|
@ -53,12 +53,7 @@ export default {
|
|||
},
|
||||
|
||||
mounted() {
|
||||
this.tableData = [
|
||||
{ prj: '项目一', node: '招采', days: 5, date: '2023.06.04',username:'haha' },
|
||||
{ prj: '项目二', node: '报建审批及地勘施工', days: 10, date: '2023.05.31' },
|
||||
{ prj: '项目三', node: '前期工作', days: 3, date: '2023.06.06' },
|
||||
{ prj: '项目四', node: '市政道路施工', days: 4, date: '2023.06.05' }
|
||||
]
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
@ -23,8 +23,8 @@ module.exports = defineConfig({
|
|||
}
|
||||
},
|
||||
'/jhapi':{
|
||||
//target: `http://62.234.3.186/jhapi/`,
|
||||
target: `http://127.0.0.1:8090/jhapi/`,
|
||||
target: `http://62.234.3.186/jhapi/`,
|
||||
//target: `http://127.0.0.1:8090/jhapi/`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/jhapi':'/'
|
||||
|
|
Loading…
Reference in New Issue