From 95ff3cadc7685f6470a0d6c78429dbfd5b1451d9 Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期一, 08 三月 2021 17:53:30 +0800 Subject: [PATCH] 天地图瓦片切换增加淡入淡出效果 --- src/main.js | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 4de11ed..28cfbd5 100644 --- a/src/main.js +++ b/src/main.js @@ -1,3 +1,4 @@ +// import 'babel-polyfill' import Vue from 'vue' import App from './App.vue' import router from './router' @@ -7,10 +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