/*
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2022-06-06 17:29:15
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2022-08-15 17:20:12
|
* @FilePath: \draw\src\main.js
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
*/
|
import Vue from 'vue'
|
import App from './App.vue'
|
import router from './router'
|
import store from './store'
|
import 'leaflet/dist/leaflet.css'
|
// 引入Leaflet对象 挂载到Vue上,便于全局使用,也可以单独页面中单独引用
|
import * as L from 'leaflet'
|
import 'leaflet.pm'
|
import 'leaflet.pm/dist/leaflet.pm.css'
|
import Vant from 'vant'
|
import 'vant/lib/index.css'
|
import 'lib-flexible'
|
|
//引入turf.js
|
import * as turf from '@turf/turf'
|
Vue.prototype.$turf = turf
|
|
Vue.use(Vant)
|
|
Vue.use(require('vue-wechat-title'))
|
|
Vue.config.productionTip = false
|
Vue.prototype.$L = L
|
window.L = L
|
|
delete L.Icon.Default.prototype._getIconUrl
|
L.Icon.Default.mergeOptions({
|
iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),
|
iconUrl: require('leaflet/dist/images/marker-icon.png'),
|
shadowUrl: require('leaflet/dist/images/marker-shadow.png'),
|
})
|
|
|
new Vue({
|
router,
|
store,
|
render: h => h(App)
|
}).$mount('#app')
|