|
@@ -29,8 +29,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-// import * as Cesium from "../../Cesium";
|
|
|
-// import "../../Cesium/Widgets/widgets.css";
|
|
|
+import * as Cesium from "../../Cesium";
|
|
|
+import "../../Cesium/Widgets/widgets.css";
|
|
|
import fjLonLatJson from "./fjLonLat.json";
|
|
|
import comModelDialog from "@/components/comModelDialog.vue"
|
|
|
export default {
|
|
@@ -50,8 +50,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async initCesium() {
|
|
|
- Cesium.Ion.defaultAccessToken =
|
|
|
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwYTQwNDk3MC05YTZkLTQ2ZTEtODc0MS1lZTFkYjFlOTFmNmQiLCJpZCI6MTcyNDQ1LCJpYXQiOjE3NTQ4ODA4MzF9.KnhENYiHxNwTkhTWRA-lHqG59coLVT2FsIyOru2TV3E";
|
|
|
+ // Cesium.Ion.defaultAccessToken =
|
|
|
+ // "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwYTQwNDk3MC05YTZkLTQ2ZTEtODc0MS1lZTFkYjFlOTFmNmQiLCJpZCI6MTcyNDQ1LCJpYXQiOjE3NTQ4ODA4MzF9.KnhENYiHxNwTkhTWRA-lHqG59coLVT2FsIyOru2TV3E";
|
|
|
const box = document.getElementById('cesiumContainer')
|
|
|
const viewer = new Cesium.Viewer(box, {
|
|
|
animation: false,//是否创建动画小器件,左下角仪表
|