From 971e097ae21b96d05ee99868f1a7b460ddcd71ae Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 10 May 2022 17:08:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 1 + frontend/src/main.js | 2 ++ frontend/src/styles/index.scss | 8 ++++++++ 3 files changed, 11 insertions(+) diff --git a/frontend/package.json b/frontend/package.json index ceb7d001fa..5cdccb511b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,6 +14,7 @@ }, "dependencies": { "@antv/g2plot": "^2.4.9", + "@antv/l7-maps": "^2.8.35", "@antv/s2": "^1.11.0", "@antv/util": "^2.0.17", "@riophae/vue-treeselect": "0.4.0", diff --git a/frontend/src/main.js b/frontend/src/main.js index 13e4e465ac..c3fb239100 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -26,6 +26,7 @@ import '@/components/canvas/custom-component' // 注册自定义组件 import '@/utils/DateUtil' import draggable from 'vuedraggable' import deWebsocket from '@/websocket' +import { GaodeMap } from '@antv/l7-maps' Vue.config.productionTip = false Vue.use(VueClipboard) Vue.use(widgets) @@ -35,6 +36,7 @@ Vue.prototype.$api = api import * as echarts from 'echarts' Vue.prototype.$echarts = echarts +Vue.prototype.$gaodeMap = GaodeMap import UmyUi from 'umy-ui' Vue.use(UmyUi) diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index d3b3752e6a..c1a934eefd 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -819,3 +819,11 @@ div:focus { font-weight: 800; color: #F56C6C; } +.amap-container{ + // position: inherit !important; + right: 0px; +} +.l7-scene { + // position: relative !important; + right: 0px; +}