diff --git a/README.md b/README.md index 0c58cbf..6791002 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,8 @@ satellite-track使用TLE数据追踪卫星,使用cesium、vue、satelliteJS开发。 -## [预览](https://jiangteng2019.github.io/satellite-track/) \ No newline at end of file +## [预览](https://jiangteng2019.github.io/satellite-track/) + +###说明 +1、为了节约性能,卫星轨道数据选择显示,而不全量显示; +2、数据来源于celestrak \ No newline at end of file diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/public/favicon.ico b/public/favicon.ico index df36fcf..b70cd29 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/assets/menu.svg b/src/assets/menu.svg new file mode 100644 index 0000000..03e44a5 --- /dev/null +++ b/src/assets/menu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/js/SatelliteEntity.js b/src/js/SatelliteEntity.js index da3dfdb..deadd13 100644 --- a/src/js/SatelliteEntity.js +++ b/src/js/SatelliteEntity.js @@ -13,7 +13,7 @@ class SatelliteEntity { this.satrec = twoline2satrec(this.tleLine1, this.tleLine2); this.totalSeconds = 864000;// 864000 - this.stepSeconds = 150; + this.stepSeconds = 100; this.leadTime = parseInt(24 * 3600 / circle); this.trailTime = 0; @@ -56,7 +56,7 @@ class SatelliteEntity { description: this.name, availability: new Cesium.TimeIntervalCollection([new Cesium.TimeInterval({ start: start, stop: stop })]), position: this._getPositionProperty(), - point: { pixelSize: 8, color: Cesium.Color.fromRandom({ alpha: 1.0 }) }, + point: { pixelSize: 10, color: Cesium.Color.fromRandom({ alpha: 1.0 }) }, path: new Cesium.PathGraphics({ width: 1, show: false, diff --git a/src/views/satellite-track/SatelliteTrack.scss b/src/views/satellite-track/SatelliteTrack.scss index 93ba7c8..e1b3747 100644 --- a/src/views/satellite-track/SatelliteTrack.scss +++ b/src/views/satellite-track/SatelliteTrack.scss @@ -4,4 +4,47 @@ .cesium-viewer-bottom { display: none; +} + +.operate_container { + position: absolute; + top: 5px; + left: 5px; + z-index: 999; + + .menu_button { + box-sizing: border-box; + width: 32px; + height: 32px; + border-radius: 14%; + padding: 0; + vertical-align: middle; + z-index: 0; + display: inline-block; + position: relative; + background: #303336; + border: 1px solid #444; + color: #edffff; + fill: #edffff; + cursor: pointer; + } + .menu_button:hover { + color: #fff; + fill: #fff; + background: #48b; + border-color: #aef; + box-shadow: 0 0 8px #fff; + } +} + +.el-drawer { + background-color: rgba($color: #303336, $alpha: 0.9); + color: #fff; + .el-drawer__header { + background-color: #303336; + color: inherit; + } + .el-checkbox { + color: inherit; + } } \ No newline at end of file diff --git a/src/views/satellite-track/SatelliteTrack.vue b/src/views/satellite-track/SatelliteTrack.vue index 67f9883..bcc21d8 100644 --- a/src/views/satellite-track/SatelliteTrack.vue +++ b/src/views/satellite-track/SatelliteTrack.vue @@ -1,5 +1,26 @@