diff --git a/index.html b/index.html
index 2e99138..14017b9 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,11 @@
-
+
@@ -27,25 +28,29 @@
请选择航次名称
-
{{ item.name }}
+
{{
+ item.name }}
请选择平台类型
-
{{ item.name + '(' + item.value + ')' }}
+
{{
+ item.name + '(' + item.value + ')' }}
请选择设备类型
-
{{ item.name + '(' + item.value + ')' }}
+
{{
+ item.name + '(' + item.value + ')' }}
请选择数据样品类型
-
{{ item.name + '(' + item.value + ')' }}
+
{{
+ item.name + '(' + item.value + ')' }}
@@ -450,7 +455,7 @@ export default {
baseLayerPicker: false,
fullscreenButton: false,
selectionIndicator: false,
- homeButton: false,
+ homeButton: true,
animation: false,
infoBox: false,
geocoder: false,
@@ -469,10 +474,20 @@ export default {
this.viewer.scene.globe.showGroundAtmosphere = false
this.viewer.scene.postProcessStages.fxaa.enabled = true
- this.viewer.camera.setView({
+ // 单击 homeButton 返回初始位置
+ this.viewer.homeButton.viewModel.command.beforeExecute.addEventListener((e) => {
+ e.cancel = true;
+ this.viewer.camera.flyTo({
// 指定相机初始位置
- destination: Cesium.Cartesian3.fromDegrees(110, 18, 10000000)
+ destination: Cesium.Cartesian3.fromDegrees(112, 18, 4000000),
+ duration: 0.5
});
+ });
+
+ this.viewer.camera.setView({
+ // 指定相机初始位置
+ destination: Cesium.Cartesian3.fromDegrees(112, 18, 4000000)
+ });
// 不显示底图
this.viewer.imageryLayers.get(0).show = false
@@ -861,7 +876,7 @@ export default {
.tag {
color: #333333;
padding: 5px;
- background-color: rgb(249,249,249);
+ background-color: rgb(249, 249, 249);
margin: 0 15px 15px 0;
}
}
diff --git a/src/views/home.vue b/src/views/home.vue
index e605127..981a075 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -353,7 +353,7 @@ export default {
baseLayerPicker: false,
fullscreenButton: false,
selectionIndicator: false,
- homeButton: false,
+ homeButton: true,
animation: false,
infoBox: false,
geocoder: false,
@@ -372,10 +372,20 @@ export default {
this.viewer.scene.globe.showGroundAtmosphere = false
this.viewer.scene.postProcessStages.fxaa.enabled = true
- this.viewer.camera.setView({
+ // 单击 homeButton 返回初始位置
+ this.viewer.homeButton.viewModel.command.beforeExecute.addEventListener((e) => {
+ e.cancel = true;
+ this.viewer.camera.flyTo({
// 指定相机初始位置
- destination: Cesium.Cartesian3.fromDegrees(110, 18, 10000000)
+ destination: Cesium.Cartesian3.fromDegrees(112, 18, 4000000),
+ duration: 0.5
});
+ });
+
+ this.viewer.camera.setView({
+ // 指定相机初始位置
+ destination: Cesium.Cartesian3.fromDegrees(112, 18, 4000000)
+ });
// 改写 Cesium 原生鼠标滚轮事件,地图缩放改为按下 Ctrl + 鼠标滚轮
modifyCesiumMouseWheel(this.viewer);
diff --git a/static/images/ougp.ico b/static/images/ougp.ico
new file mode 100644
index 0000000..3c3908a
Binary files /dev/null and b/static/images/ougp.ico differ