From 47af46140c4ca30488030e93d20a1965b2c848a2 Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期一, 08 三月 2021 17:57:23 +0800 Subject: [PATCH] 天地图瓦片切换增加淡入淡出效果 --- src/main.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index fa37006..28cfbd5 100644 --- a/src/main.js +++ b/src/main.js @@ -8,11 +8,16 @@ import echartsDarkTheme from '@/styles/theme-dark/echarts/theme.json' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' - +import 'leaflet/dist/leaflet.css' +import L from 'leaflet' +import 'leaflet.markercluster' +import 'leaflet-canvas-markers' +import './components/plugin/Leaflet.GridLayer.FadeOut' Vue.config.productionTip = false -Vue.use(ElementUI, { size: 'small' }) +Vue.use(ElementUI) Vue.prototype.$cancels = [] +Vue.prototype.L = L // 娉ㄥ唽鎸囦护 // registerDirectives(Vue) -- Gitblit v1.8.0