From d972ee60040a9597f34b66e3f02ffb7d3ac1f40b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98lijianhao=E2=80=99?=
Date: Tue, 26 Jul 2022 15:28:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=BC=95=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/client/index.ejs | 6 +++
web/client/index.html | 6 +++
.../src/sections/quanju/containers/example.js | 39 ++++++++++++++++++-
.../footer/conserve/left/left-center.js | 2 +-
web/client/src/sections/quanju/style.less | 9 ++++-
5 files changed, 57 insertions(+), 5 deletions(-)
diff --git a/web/client/index.ejs b/web/client/index.ejs
index 36e893cd..cc063a05 100644
--- a/web/client/index.ejs
+++ b/web/client/index.ejs
@@ -9,6 +9,12 @@
type="text/css"
href="/assets/font_sc/iconfont.css"
/>
+
+
diff --git a/web/client/index.html b/web/client/index.html
index 649f2383..21c20065 100644
--- a/web/client/index.html
+++ b/web/client/index.html
@@ -10,6 +10,12 @@
href="/assets/font_sc/iconfont.css"
/>
+
+
{
// dispatch({ type: 'TAB-CHANGE', data: tab })
}
+
+ useEffect(() => {
+ const map = new AMap.Map("amapId", {
+ //resizeEnable: true,
+ center: [115.880421, 28.529637],//地图中心点,初始定位加载显示楼块
+ // center: [115.857952, 28.683003],//地图中心点
+ zoom: 8,//地图显示的缩放级别
+ zooms: [8, 18],
+ pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度
+ viewMode: '3D', // 地图模式
+ // rotation: 60
+ // showLabel: false
+ });
+
+
+ //主题样式
+ let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc';
+ map.setMapStyle(styleName);
+
+ let mapComplete = false;
+ let windowOnload = false;
+ window.onload = function () {
+ windowOnload = true;
+ }
+ return () =>{
+ map.destroy(); //销毁地图
+ map=null
+ }
+ }, [])
+
+
return (
-
)
diff --git a/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js b/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
index 2bb90c39..94ed8fa9 100644
--- a/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
+++ b/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
@@ -230,7 +230,7 @@ const LeftCenter = (props) => {
可绿化里程总数
- {totalData}
+ {totalData.toFixed(3) || 0}
diff --git a/web/client/src/sections/quanju/style.less b/web/client/src/sections/quanju/style.less
index 33234528..6322c4bd 100644
--- a/web/client/src/sections/quanju/style.less
+++ b/web/client/src/sections/quanju/style.less
@@ -1,3 +1,8 @@
#example:hover {
- font-size: larger;
-}
\ No newline at end of file
+ font-size: larger;
+}
+.amap-logo {
+ display: none;
+
+ opacity: 0 !important;
+}