This commit is contained in:
2025-12-08 10:58:29 +08:00
parent 675e874e3d
commit e33f58a504
2 changed files with 10 additions and 9 deletions

View File

@ -7,6 +7,10 @@ export const addMapSource = async ({ type, id, sourceName = '未命名对象', o
if (!id) {
id = new YJ.Tools().randomString()
}
//判断是否已有元素
if (window.earth.entityMap.get(id)) {
window.earth.entityMap.get(id).remove()
}
let options: any = await initMapData(type, opt, cd)
let selectedNodes = window.treeObj.getSelectedNodes()
let node = selectedNodes && selectedNodes[selectedNodes.length - 1]

View File

@ -121,7 +121,7 @@
max="999999.99"
step="0.01"
name="defaultTime"
value="0"
value="5"
/>
<span class="unit" style="top: 6px">s</span>
<span class="arrow"></span>
@ -264,7 +264,7 @@ let allData: any = reactive({
name: '',
points: [],
repeat: '',
defaultTime: 0,
defaultTime: 5,
totalTime: 0
})
const save = () => {
@ -375,8 +375,7 @@ defineExpose({
<style scoped lang="scss">
.afreshPlay {
background:
linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
linear-gradient(180deg, rgba(27, 248, 195, 0.2) 0%, rgba(27, 248, 195, 0) 100%) !important;
border: 1px solid rgba(27, 248, 195, 1) !important;
color: rgba(27, 248, 195, 1) !important;
@ -387,8 +386,7 @@ defineExpose({
}
.cease {
background:
linear-gradient(180deg, rgba(241, 108, 85, 0.2) 0%, rgba(241, 108, 85, 0) 100%),
background: linear-gradient(180deg, rgba(241, 108, 85, 0.2) 0%, rgba(241, 108, 85, 0) 100%),
rgba(0, 0, 0, 0.5) !important;
border: 1px solid rgba(241, 108, 85, 1) !important;
color: rgba(241, 108, 85, 1) !important;
@ -399,8 +397,7 @@ defineExpose({
}
.video {
background:
linear-gradient(
background: linear-gradient(
180deg,
rgba(71, 27, 5, 0.3) 0%,
rgba(71, 27, 5, 0.3) 0%,