Compare commits

...

62 Commits

Author SHA1 Message Date
rainbowZZ b2418e3272 feature: 增加刷新按钮 3 weeks ago
rainbowZZ 24a7fc184e feature: 航线加入图层管理 4 weeks ago
zhaipx cbf0295bd8 feature: 弱网环境检测和在线模式、离线模式自动切换 2 months ago
zhaipx 159f06800f fix: 解决断网环境下的功能异常问题 2 months ago
zhaipx 0ab75c73a0 feature: websocket操作逻辑修改 2 months ago
zhaipx 4c200020a3 feature: 气象信息高度层显示、航点label增加,视觉优化 2 months ago
zhaipx 1974872153 feature: 气象信息图表显示 2 months ago
zhaipx 30c586d9c0 航线管理页面UI和操作逻辑实现 2 months ago
zhaipx 15fe7ab26b perf: 目录结构调整 2 months ago
zhaipx a8701993b3 perf: 障碍物添加和航线绘制、websocket发送后端 2 months ago
zhaipx 6572ef649d perf: 碰撞检测功能逻辑细化和UI优化 2 months ago
zhaipx e81f71b1d3 feature: 实现两个曲线图同时动态绘制 2 months ago
zhaipx 5548c7e57e feature: 实时飞行高度与地形高度折线图绘制 3 months ago
zhaipx c5b665157c 三维伴飞测试 3 months ago
zhaipx 4a67166430 feature: 实现与QT端websocket的交互,初步实现三维伴飞 3 months ago
zhaipx 666dc130e2 feature: 增加图层管理组件及相关逻辑(目前仅支持DataSource 和 ImageryLayer 的管理 3 months ago
zhaipx bb042154cd feature: 地形分析、通视分析交互组件和逻辑实现 3 months ago
zhaipx 12872e61ca Merge remote-tracking branch 'origin/devzpx' into devzpx
# Conflicts:
#	src/assets/js/cesium-map/measureDistance.js
4 months ago
zhaipx 02bf513dfe refactor: 增加主页面(为增加哈希路由),新增地图图形导出KML、Geojson功能,修改引入Cesium的方式,解决打包后地球无法加载的问题,新增public下Cesium资源 4 months ago
zhaipx dba247efa4 refactor: 增加主页面(为增加哈希路由),新增地图图形导出KML、Geojson功能,修改引入Cesium的方式,解决打包后地球无法加载的问题,新增public下Cesium资源 4 months ago
zhaipx 7a2cdfa8da feat:实现多边形、矩形、圆形绘制和多边形面积测量 4 months ago
zhaipx 819d0d32e5 feat:引入naiveUI,实现工具条雏形,实现距离测量 4 months ago
zhaipx 2da9f05c19 feat:基于最大斜率的两点间通视算法实现 1 year ago
zhaipx 7e9096eab9 feat:引入Echarts库,增加剖面分析折线图(静态) 1 year ago
zhaipx 32f4457012 fix:解决合并冲突 1 year ago
zhaipx 75249a4a63 Merge branch 'devzpx' into dev
# Conflicts:
#	src/components/map/SceneViewer.vue
#	src/utils/map/draw/drawPolyline.ts
1 year ago
WuChengbo fbad4dba03 Merge pull request 'dev-cbwu' (#8) from dev-cbwu into dev
Reviewed-on: WuChengbo/GCSGUI#8
1 year ago
cbwu 1ae19f2896 feat: 地表辅助线(待完善) 1 year ago
cbwu fc4c74e21a fix: 修复绘制航线双击结束判定逻辑。 1 year ago
zhaipx 19c18e4212 feat: 1.增加绘制折线类的bProfile参数,用于指示绘制结束后是否进行地形剖面分析 2.封装折线段剖面分析数值解算函数 1 year ago
cbwu 0b9b0c2432 Merge remote-tracking branch 'origin/dev' into dev-cbwu 1 year ago
cbwu 97976393d4 feat: 绘制航线新增垂直辅助线。 1 year ago
zhaipx e50790c3e9 feat: 新增距离、方位角计算、面积测量交互接口,绘制折线、多边形时可选 1 year ago
zhaipx 2c45764989 Merge branch 'devzpx' into dev
# Conflicts:
#	src/components/map/BottomBar.vue
#	src/utils/DataIO.ts
#	src/utils/map/geocomputation.ts
1 year ago
zhaipx aa6d6a3105 feat: 添加geojson、kml接口,实现地形剖面分析的数值解算 1 year ago
WuChengbo 6221bca0c0 Merge pull request 'dev-cbwu' (#6) from dev-cbwu into dev
Reviewed-on: WuChengbo/GCSGUI#6
1 year ago
cbwu a0851e54a7 fix: 修复天地图服务类WGS84加载错误的问题;三维服务使用单独的key 1 year ago
cbwu bbe84ec866 doc: 增加注释 1 year ago
cbwu ade03bc747 refactor: 拆分几何对象类的可选配置项类型接口定义 1 year ago
cbwu 4f2823f073 feat: 新增Polygon绘制类。 1 year ago
cbwu 1f5c7a3244 feat: 移除geometry.ts 1 year ago
cbwu bd13f1ce4b feat: 移除geometry.ts 1 year ago
zhaipx 32c0247870 perf: 优化状态条,恢复罗盘深色透明样式,调整相机初始视角 1 year ago
zhaipx 771a8b1c35 Merge branch 'devzpx' into dev
# Conflicts:
#	src/components/map/BottomBar.vue
#	src/utils/map/angle.ts
#	src/utils/map/geocomputation.ts
1 year ago
WuChengbo 5e87487db9 Merge pull request 'dev-cbwu' (#5) from dev-cbwu into dev
Reviewed-on: WuChengbo/GCSGUI#5
1 year ago
zhaipx 8e6de37a61 feat: 增加距离测量、面积测量、方位角计算方法 1 year ago
cbwu 32d0bfb64c feat: 标记点功能新增label。 1 year ago
cbwu 09f3e998cb feat: 新增Marker图层存储所有Marker对象 1 year ago
cbwu d50f3fc842 fix: 修改状态栏坐标拾取方式(更精确) 1 year ago
cbwu df7d438554 perf: 优化图片显示清晰度。 1 year ago
cbwu a78e0b11d5 feat: 新增绘制标记点工具类。 1 year ago
cbwu bc9fa04169 feat: 新增获取地图静态资源工具类,新增标记点静态资源 1 year ago
WuChengbo 48cd08df94 Merge pull request 'fix: window全局挂载Cesium改为首字母大写' (#4) from devzpx into dev
Reviewed-on: WuChengbo/GCSGUI#4
1 year ago
zhaipx 57d883c841 fix: window全局挂载Cesium改为首字母大写 1 year ago
WuChengbo 1a95bcfddc Merge pull request 'devzpx' (#3) from devzpx into dev
Reviewed-on: WuChengbo/GCSGUI#3
1 year ago
zhaipx d19a9b94ec perf: 优化经度转换相关代码组织,度分秒精确至毫秒 1 year ago
zhaipx 3e32f4387e Merge remote-tracking branch 'origin/dev' into devzpx
# Conflicts:
#	src/components/map/SceneViewer.vue
#	src/global.d.ts
#	src/utils/map/coordinate.ts
#	src/utils/map/geometry.ts
1 year ago
zhaipx 3e449ebca0 feat: 增加地图实时经纬高、十进制经纬度与度分秒转换 1 year ago
WuChengbo 3fc8da9da0 Merge pull request 'feat: 新增Polyline的绘制与编辑(待完善)。fix: window下的Cesium,Viewer对象改成cesium,viewer小写' (#2) from dev-cbwu into dev
Reviewed-on: WuChengbo/GCSGUI#2
1 year ago
WuChengbo 9fd2a9a65f Merge pull request 'feat: 增加地图罗盘、比例尺' (#1) from devzpx into dev
Reviewed-on: WuChengbo/GCSGUI#1
1 year ago
cbwu eb3d03220c feat: 新增Polyline的绘制与编辑(待完善)。fix: window下的Cesium,Viewer对象改成cesium,viewer小写 1 year ago
zhaipx 07abfcbcd0 feat: 增加地图罗盘、比例尺 1 year ago

@ -1,3 +1,10 @@
/*
* @Author: cbwu 504-wuchengbo@htsdfp.com
* @Date: 2024-04-13 10:03:23
* @LastEditors: cbwu
* @LastEditTime: 2024-04-13 11:07:45
* @Description:
*/
module.exports = {
env: {
browser: true,
@ -36,15 +43,15 @@ module.exports = {
plugins: ['@typescript-eslint', 'vue'],
rules: {
// eslinthttps://eslint.bootcss.com/docs/rules/
'no-var': 'error', // 要求使用 let 或 const 而不是 var
'no-var': 'off', // 要求使用 let 或 const 而不是 var
'no-multiple-empty-lines': ['warn', { max: 1 }], // 不允许多个空行
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unexpected-multiline': 'error', // 禁止空余的多行
'no-unexpected-multiline': 'off', // 禁止空余的多行
'no-useless-escape': 'off', // 禁止不必要的转义字符
// typeScript (https://typescript-eslint.io/rules)
'@typescript-eslint/no-unused-vars': 'error', // 禁止定义未使用的变量
'@typescript-eslint/no-unused-vars': 'warn', // 禁止定义未使用的变量
'@typescript-eslint/prefer-ts-expect-error': 'error', // 禁止使用 @ts-ignore
'@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型
'@typescript-eslint/no-non-null-assertion': 'off',
@ -63,5 +70,6 @@ module.exports = {
semi: false,
},
],
'linebreak-style': [0, 'error', 'windows'], //取消对LF和CRLF的检查
},
}

@ -1,9 +1,9 @@
{
"singleQuote": true,
"semi": false,
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "auto",
"trailingComma": "all",
"tabWidth": 2
}
{
"singleQuote": true,
"semi": false,
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "lf",
"trailingComma": "all",
"tabWidth": 2
}

@ -1,4 +1,5 @@
/node_modules/*
/dist/*
/html/*
/public/*
/public/*
*cesium*

@ -1,30 +1,38 @@
# Vue 3 + TypeScript + Vite
# Vue 3 + Vite + Cesium
采用Vue3 + TypeScript + Vite来构建界面。强制使用pnpm作为包管理工具。
- 采用Vue3 + TypeScript + Vite来构建Cesium应用平台。
- 强制使用pnpm作为包管理工具。
## Git提交规范
commit 提交信息时,必须是 **git commit -m 'fix: xxx'** 符合类型的才可以,**需要注意的是类型的后面需要用英文的 :,并且冒号后面是需要空一格的,这个是不能省略的**。
commit提交时需使用`git commit -m 'fix: xxx'`
改动类型如下
```
'feat',//新特性、新功能
'fix',//修改bug
'docs',//文档修改
'style',//代码格式修改, 注意不是 css 修改
'refactor',//代码重构
'perf',//优化相关,比如提升性能、体验
'test',//测试用例修改
'chore',//其他修改, 比如改变构建流程、或者增加依赖库、工具等
'revert',//回滚到上一个版本
'build',//编译相关的修改,例如发布版本、对项目构建或者依赖的改动
'feat', //新特性、新功能
'fix', //修改bug
'docs', //文档修改
'style', //代码格式修改, 注意不是 css 修改
'refactor', //代码重构
'perf', //优化相关,比如提升性能、体验
'test', //测试用例修改
'chore', //其他修改, 比如改变构建流程、或者增加依赖库、工具等
'revert', //回滚到上一个版本
'build', //编译相关的修改,例如发布版本、对项目构建或者依赖的改动
```
## Cesium版本
- 采用开源Cesium.js库版本为1.108
- <font color=red>不要随意升级版本天地图三维地形服务目前只支持1.108实测1.109也能用,更高版本则无法使用。</font>
## 地图库
## 地图服务
- 地图采用开源的Cesium.js库版本为1.108.注不要随意升级版本天地图三维地形服务目前只支持1.108实测1.109也能用,更高版本则无法使用。
地图服务采用天地图数据源( https://www.tianditu.gov.cn/ )。
时间分辨率:官方未说明
空间分辨率官方未说明约为30米
## 地图服务
## 打包部署
- 执行build后需将此项目中的`public`文件夹复制到`dist`目录下再进行nginx部署。public包含了Cesium所需的静态资源否则不能加载地球
- 2025.4.17 更新: `public`文件夹如果不复制到`dist`目录下,服务也可以运行,但加载航线时出现异常
地图服务采用天地图图源https://www.tianditu.gov.cn/)。

@ -1,3 +1,10 @@
<!--
* @Author: cbwu 504-wuchengbo@htsdfp.com
* @Date: 2024-03-07 09:19:24
* @LastEditors: cbwu
* @LastEditTime: 2024-04-02 13:19:05
* @Description:
-->
<!doctype html>
<html lang="en">
<head>
@ -15,13 +22,8 @@
<script
type="text/javascript"
cesium="true"
src="node_modules/cesium/Build/Cesium/Cesium.js"
src="public/Cesium/Cesium.js"
></script>
<!-- <script
type="text/javascript"
cesium="true"
src="https://api.tianditu.gov.cn/cdn/demo/sanwei/static/cesium/Cesium.js"
></script> -->
<script
type="text/javascript"
cesium="true"

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint src",
"fix": "eslint src --fix",
@ -17,10 +17,25 @@
"preinstall": "node ./scripts/preinstall.js"
},
"dependencies": {
"@vicons/carbon": "^0.13.0",
"@vicons/fa": "^0.13.0",
"@vicons/ionicons5": "^0.13.0",
"@vicons/material": "^0.13.0",
"@vitejs/plugin-legacy": "^6.0.1",
"@vitejs/plugin-vue": "^5.0.4",
"axios": "^1.6.7",
"cesium": "1.108",
"cesium-navigation-es6": "^3.0.8",
"crypto-js": "^4.2.0",
"echarts": "^5.5.0",
"fs": "0.0.1-security",
"kml-geojson": "^2.0.1",
"naive-ui": "^2.35.0",
"pinia": "^2.1.7",
"vue": "^3.4.21"
"pinia-plugin-persist": "^1.0.0",
"tokml": "^0.4.0",
"vue": "^3.4.21",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.23.10",

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

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

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

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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
<Title>NE2_HR_LC_SR_W_DR_recolored.tif</Title>
<Abstract></Abstract>
<SRS>EPSG:4326</SRS>
<BoundingBox miny="-90.00000000000000" minx="-180.00000000000000" maxy="90.00000000000000" maxx="180.00000000000000"/>
<Origin y="-90.00000000000000" x="-180.00000000000000"/>
<TileFormat width="256" height="256" mime-type="image/jpg" extension="jpg"/>
<TileSets profile="geodetic">
<TileSet href="0" units-per-pixel="0.70312500000000" order="0"/>
<TileSet href="1" units-per-pixel="0.35156250000000" order="1"/>
<TileSet href="2" units-per-pixel="0.17578125000000" order="2"/>
</TileSets>
</TileMap>

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save