Commit d5580587 by jlc

update:晨昏线案例代码结构的修改

parent 2f0b0b45
<template>
<div id="cesiumContainer" class="cesium-container"></div>
</template>
<script setup>
import { onMounted } from 'vue';
import { addTerminatorLine } from './function';
let viewer;
onMounted(() => {
......@@ -17,9 +19,9 @@ onMounted(() => {
});
addTerminatorLine(viewer)
};
document.head.appendChild(script);
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = 'https://cesium.com/downloads/cesiumjs/releases/1.119/Build/Cesium/Widgets/widgets.css';
......@@ -30,7 +32,7 @@ onMounted(() => {
<style>
.cesium-container {
width: 100%;
height: 100vh;
width: 100%;
height: 100vh;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment