智慧农业绘制地图
guoshilong
2022-09-27 1767c2c878ec1892ae560f81b32b5afdd2ceebfd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * @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')