|
@ -10,7 +10,7 @@ |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="11" :offset="1"> |
|
|
<a-col :span="11" :offset="1"> |
|
|
<div>区域名称:</div> |
|
|
<div>区域名称:</div> |
|
|
<a-input class="inputWidthCss1" v-model:value="subObject.sceneName" placeholder="请输入区域编号名称" |
|
|
<a-input class="inputWidthCss1" v-model:value="subObject.sceneName" placeholder="请输入区域名称" |
|
|
:disabled="disable"></a-input> |
|
|
:disabled="disable"></a-input> |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="11" :offset="1"> |
|
|
<a-col :span="11" :offset="1"> |
|
@ -62,7 +62,7 @@ |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="11" :offset="1"> |
|
|
<a-col :span="11" :offset="1"> |
|
|
<div> |
|
|
<div> |
|
|
<div>相机经度:</div><a-input-number class="inputWidthCss1" v-model:value="subObject.cameraLon" |
|
|
<div>相机经度:</div><a-input-number class="inputWidthCss1" v-model:value="subObject.cameraLon" :min="0" |
|
|
:disabled="disable" /> |
|
|
:disabled="disable" /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
@ -234,7 +234,7 @@ onMounted(async () => { |
|
|
// 打开地图时飞入到指定位置 |
|
|
// 打开地图时飞入到指定位置 |
|
|
const moveChinaPosition = function () { |
|
|
const moveChinaPosition = function () { |
|
|
// console.log('movePosition', subObject.value); |
|
|
// console.log('movePosition', subObject.value); |
|
|
if (subObject.value.id) { |
|
|
if (subObject.value.id || subObject.value.cameraLon ) { |
|
|
window.$earth.camera.fov = subObject.value.viewDistance; |
|
|
window.$earth.camera.fov = subObject.value.viewDistance; |
|
|
//飞入应为相机位置 |
|
|
//飞入应为相机位置 |
|
|
window.$earth.camera.position = [subObject.value.cameraLon, subObject.value.cameraLat, subObject.value.cameraAltitude]; |
|
|
window.$earth.camera.position = [subObject.value.cameraLon, subObject.value.cameraLat, subObject.value.cameraAltitude]; |
|
@ -251,6 +251,10 @@ const moveChinaPosition = function () { |
|
|
// 弹窗地图框属性 |
|
|
// 弹窗地图框属性 |
|
|
const mapVisible = ref(false); |
|
|
const mapVisible = ref(false); |
|
|
const mapShow = function () { |
|
|
const mapShow = function () { |
|
|
|
|
|
// if(!subObject.value.sceneName){ |
|
|
|
|
|
// message.warning("请先填写区域名称!") |
|
|
|
|
|
// return |
|
|
|
|
|
// } |
|
|
mapVisible.value = true; |
|
|
mapVisible.value = true; |
|
|
}; |
|
|
}; |
|
|
// 关闭地图时设置,视角位置,视距信息 |
|
|
// 关闭地图时设置,视角位置,视距信息 |
|
|