|
|
@ -862,7 +862,8 @@ |
|
|
|
if (!(data instanceof Array)) { |
|
|
|
// debugger; |
|
|
|
// 各岛礁 |
|
|
|
position = [data.lon, data.lat, data.altitude]; |
|
|
|
// position = [data.lon, data.lat, data.altitude]; |
|
|
|
position = [data.cameraLon, data.cameraLat, data.cameraAltitude]; |
|
|
|
rotation = [data.rotationX, data.rotationY, data.rotationZ]; |
|
|
|
viewDistance = data.viewDistance; |
|
|
|
duration = data.duration ? data.duration : 0; |
|
|
@ -873,7 +874,8 @@ |
|
|
|
}; |
|
|
|
} else { |
|
|
|
// 总指挥中心 |
|
|
|
position = [parentData[0].lon, parentData[0].lat, parentData[0].altitude]; |
|
|
|
// position = [parentData[0].lon, parentData[0].lat, parentData[0].altitude]; |
|
|
|
position = [parentData[0].cameraLon, parentData[0].cameraLat, parentData[0].cameraAltitude]; |
|
|
|
rotation = [parentData[0].rotationX, parentData[0].rotationY, parentData[0].rotationZ]; |
|
|
|
viewDistance = parentData[0].viewDistance; |
|
|
|
duration = parentData[0].duration; |
|
|
@ -1639,13 +1641,16 @@ |
|
|
|
} |
|
|
|
let fileInfos = data.modelUrl.split('.'); |
|
|
|
if (num == 0) { |
|
|
|
gltfStr = window._CONFIG['domianURL'] + '/sys/common/static/' + fileInfos[0] + '.' + fileInfos[1]; |
|
|
|
// gltfStr = window._CONFIG['domianURL'] + '/sys/common/static/' + fileInfos[0] + '.' + fileInfos[1]; |
|
|
|
gltfStr = '/dt/sys/common/static/' + fileInfos[0] + '.' + fileInfos[1]; |
|
|
|
} else if (num < data.msCameraSettingList.length) { |
|
|
|
let newName = fileInfos[0].substring(0, fileInfos[0].length - 1) + 'R'; |
|
|
|
gltfStr = window._CONFIG['domianURL'] + '/sys/common/static/' + newName + '.' + fileInfos[1]; |
|
|
|
// gltfStr = window._CONFIG['domianURL'] + '/sys/common/static/' + newName + '.' + fileInfos[1]; |
|
|
|
gltfStr = '/dt/sys/common/static/' + newName + '.' + fileInfos[1]; |
|
|
|
} else if (num == data.msCameraSettingList.length) { |
|
|
|
let newName = fileInfos[0].substring(0, fileInfos[0].length - 1) + 'Y'; |
|
|
|
gltfStr = window._CONFIG['domianURL'] + '/sys/common/static/' + newName + '.' + fileInfos[1]; |
|
|
|
// gltfStr = window._CONFIG['domianURL'] + '/sys/common/static/' + newName + '.' + fileInfos[1]; |
|
|
|
gltfStr = '/dt/sys/common/static/' + newName + '.' + fileInfos[1]; |
|
|
|
} |
|
|
|
const modelConfig = { |
|
|
|
ref: data.id, |
|
|
|