From 4babef2228379742188ad51d77300efcbd00a1ba Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 18 Apr 2023 19:25:02 +0800
Subject: [PATCH] 关闭按钮和echarts图例调整
---
src/components/map/index.vue | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 984e972..a623395 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-08-18 17:00:30
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-04-18 14:55:01
+ * @LastEditTime: 2023-04-18 18:11:01
* @FilePath: \srs-police-affairs\src\components\map\index.vue
* @Description: 公用地图组件
*
@@ -44,6 +44,7 @@
<div class="title">
底图
<div class="close" @click.stop="showImgBtn = false">
+ <img src="/img/icon/close.png" alt="">
</div>
</div>
@@ -295,12 +296,12 @@
that.switchImg()
// 地形数据添加
- this.addTerrain()
-
+ that.addTerrain()
+
// 外网
// global.viewer.imageryLayers.addImageryProvider(
// new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
- // url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c',
+ // url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=d083e4cf30bfc438ef93436c10c2c20a',
// subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
// format: 'image/jpeg',
// show: true,
@@ -551,7 +552,6 @@
}
document.querySelector('.dc-zoom-controller .refresh svg title').innerHTML = '初始化位置'
-
})
},
@@ -758,6 +758,7 @@
addTerrain () {
projectTerrain = global.DC.TerrainFactory.createUrlTerrain({
+ // url: `http://data.marsgis.cn/terrain`
url: `${window.BASE_URL_CONFIG.VUE_APP_MAP_DX}`
})
@@ -1151,6 +1152,8 @@
shadows: global.DC.Namespace.Cesium.ShadowMode.DISABLED
})
+ tilesetObject[titlesetName].setHeight(10)
+
tilesetLayer.addOverlay(tilesetObject[titlesetName])
// global.viewer.flyTo(tilesetObject[titlesetName])removeMxTileset
@@ -1220,8 +1223,8 @@
polygonHierarchy: new global.DC.Namespace.Cesium.PolygonHierarchy(
global.DC.Namespace.Cesium.Cartesian3.fromDegreesArray(floorPositions),
),
- extrudedHeight: 80,//分层顶部海拔
- height: 50,//分层底部海拔
+ extrudedHeight: maxHeight + 10,//分层顶部海拔
+ height: minHeight + 10,//分层底部海拔
}),
attributes: {
--
Gitblit v1.9.3