基础静态资源配置
This commit is contained in:
+2
-2
@@ -2,9 +2,9 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="./src/assets/images/logo.svg" />
|
||||
<link rel="icon" type="image/svg+xml" href="./src/assets/images/logo.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>basic_template_not_login_front</title>
|
||||
<title>西安智慧应急多灾种灾害链分析专项</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763083991244" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1008" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M896 896H554.656V256a128 128 0 0 1 128-128H896c23.552 0 42.656 19.104 42.656 42.656v682.656c0 23.552-19.104 42.656-42.656 42.656z m-426.656 0H128a42.656 42.656 0 0 1-42.656-42.656V170.688c0-23.552 19.104-42.656 42.656-42.656h213.344a128 128 0 0 1 128 128v640z m0 0h85.344v85.344h-85.344V896z" fill="#3CB956" p-id="1009"></path></svg>
|
||||
|
Before Width: | Height: | Size: 664 B |
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":610104,"name":"莲湖区","center":[108.933194,34.2656],"centroid":[108.90115,34.270687],"childrenNum":0,"level":"district","acroutes":[100000,610000,610100],"parent":{"adcode":610100}},"geometry":{"type":"MultiPolygon","coordinates":[[[[108.953356,34.292664],[108.947387,34.292715],[108.947075,34.292715],[108.938904,34.292674],[108.931712,34.292683],[108.93156,34.292634],[108.925708,34.292481],[108.925162,34.292563],[108.922306,34.292629],[108.913453,34.292528],[108.911245,34.292538],[108.905079,34.29249],[108.898397,34.292538],[108.896632,34.292237],[108.893971,34.292078],[108.892565,34.29206],[108.891975,34.289604],[108.889901,34.289599],[108.889038,34.289604],[108.888384,34.289641],[108.887632,34.28966],[108.88725,34.289643],[108.884434,34.289697],[108.883515,34.289663],[108.883131,34.289536],[108.875303,34.289666],[108.875213,34.289671],[108.857118,34.292223],[108.85515,34.292629],[108.855106,34.291991],[108.855129,34.290715],[108.855258,34.290254],[108.856545,34.289527],[108.855322,34.289101],[108.854595,34.288648],[108.85429,34.288258],[108.853956,34.2875],[108.853832,34.286942],[108.853826,34.283364],[108.854013,34.275674],[108.854035,34.275132],[108.854104,34.27227],[108.8542,34.268786],[108.8542,34.266669],[108.854246,34.266316],[108.854271,34.264842],[108.854353,34.260584],[108.854428,34.257482],[108.854529,34.254711],[108.854592,34.25232],[108.859807,34.252315],[108.865376,34.252332],[108.88186,34.252311],[108.881916,34.251928],[108.881889,34.245218],[108.886177,34.245275],[108.886552,34.245243],[108.887825,34.24525],[108.888072,34.245156],[108.888052,34.252057],[108.888004,34.25231],[108.889526,34.252297],[108.889565,34.24951],[108.889623,34.249267],[108.889777,34.248873],[108.889964,34.248554],[108.890378,34.248017],[108.890565,34.247992],[108.891045,34.247679],[108.896676,34.24505],[108.90008,34.243521],[108.900219,34.243412],[108.900416,34.243374],[108.904261,34.241636],[108.907089,34.240367],[108.909469,34.239318],[108.910042,34.24025],[108.910083,34.241007],[108.910042,34.241511],[108.909978,34.245401],[108.910438,34.245458],[108.912402,34.246702],[108.914887,34.247929],[108.919242,34.248227],[108.920374,34.248607],[108.920352,34.248996],[108.923262,34.249064],[108.923271,34.250899],[108.928179,34.250891],[108.933088,34.250889],[108.93611,34.250906],[108.936105,34.251083],[108.936613,34.251783],[108.936581,34.25662],[108.936497,34.25904],[108.94373,34.259044],[108.945194,34.259102],[108.946549,34.259164],[108.94705,34.259221],[108.947593,34.259323],[108.947249,34.259884],[108.947183,34.260246],[108.947226,34.260721],[108.947209,34.261776],[108.947204,34.264626],[108.947247,34.266103],[108.947221,34.267011],[108.947243,34.267874],[108.947286,34.26813],[108.947244,34.268736],[108.947295,34.269709],[108.947348,34.270027],[108.9473,34.270118],[108.947284,34.271101],[108.947295,34.271545],[108.947287,34.273607],[108.947255,34.274886],[108.947315,34.275069],[108.947427,34.275194],[108.947714,34.275342],[108.947869,34.275524],[108.947946,34.275748],[108.94796,34.276504],[108.947918,34.276692],[108.947813,34.27686],[108.947548,34.27704],[108.94728,34.277397],[108.947344,34.285812],[108.950713,34.285836],[108.950849,34.289525],[108.953402,34.289541],[108.953424,34.289979],[108.953356,34.292664]]]]}}]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div class="map_container" id="map-container"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { CesiumUtils } from '@/utils/cesium/CesiumUtils';
|
||||
import { Cartesian3, type Viewer } from 'cesium';
|
||||
import { onMounted } from 'vue';
|
||||
import config from '@/config/config.json';
|
||||
|
||||
const cesiumUtils = new CesiumUtils();
|
||||
let viewer: Viewer;
|
||||
|
||||
onMounted(() => {
|
||||
viewer = cesiumUtils.initCesiumViewer({
|
||||
containerId: 'map-container',
|
||||
})
|
||||
|
||||
cesiumUtils.viewToTarget(viewer, config.defaultPosition as [number, number, number]);
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.map_container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -8,5 +8,6 @@
|
||||
"2e8111f9bc84149cbf24f562ed4e9229",
|
||||
"88055d3d7f13f8f7e6e8eeb67cf6d78a"
|
||||
],
|
||||
"cesiumIonDefaultAccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1ZDBjZjAxOS0wMDhhLTRmZjEtYjNmOC1iNmM2ZmY2ZmQ1N2IiLCJpZCI6MjAxMDI1LCJpYXQiOjE3MTAxNTgxNjJ9.mdbJYEzXQkBnHNqpozz7MvZjJ_X9a3JZRGPA-ytGhLI"
|
||||
"cesiumIonDefaultAccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1ZDBjZjAxOS0wMDhhLTRmZjEtYjNmOC1iNmM2ZmY2ZmQ1N2IiLCJpZCI6MjAxMDI1LCJpYXQiOjE3MTAxNTgxNjJ9.mdbJYEzXQkBnHNqpozz7MvZjJ_X9a3JZRGPA-ytGhLI",
|
||||
"defaultPosition": [108.948024, 34.263161, 200000]
|
||||
}
|
||||
|
||||
+9
-4
@@ -5,13 +5,18 @@ const router = createRouter({
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/home',
|
||||
redirect: '/rainstorm',
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: () => import('@/views/home/HomePage.vue'),
|
||||
path: '/rainstorm',
|
||||
name: 'rainstorm',
|
||||
component: () => import('@/views/home/rainstorm/Rainstorm.vue'),
|
||||
},
|
||||
{
|
||||
path: '/earthquake',
|
||||
name: 'earthquake',
|
||||
component: () => import('@/views/home/earthquake/Earthquake.vue'),
|
||||
}
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ export class CesiumUtils {
|
||||
|
||||
const finalOptions = { ...defaultOptions, ...options }
|
||||
const container = document.getElementById(finalOptions.containerId)
|
||||
|
||||
|
||||
if (!container) {
|
||||
throw new Error(`Cesium 容器 #${finalOptions.containerId} 不存在`)
|
||||
}
|
||||
@@ -140,6 +140,11 @@ export class CesiumUtils {
|
||||
viewer.scene.fog.enabled = false
|
||||
viewer.scene.globe.enableLighting = false //全局光照
|
||||
viewer.shadows = false
|
||||
// 禁用天空盒和天空大气
|
||||
viewer.scene.skyBox.show = false
|
||||
viewer.scene.skyAtmosphere.show = false
|
||||
// 禁用月球
|
||||
viewer.scene.moon.show = false
|
||||
const creditContainer = viewer.cesiumWidget.creditContainer as HTMLElement
|
||||
creditContainer.style.display = 'none'
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
首页
|
||||
地震灾害链
|
||||
</div>
|
||||
</template>
|
||||
<script name="HomePage" setup lang="ts">
|
||||
<script setup lang="ts">
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 地图组件 -->
|
||||
<MapComponent />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import MapComponent from "@/component/map/Map.vue"
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user