Vue.js使用Leaflet地图

参考:https://blog.csdn.net/Joshua_HIT/article/details/72860171

vue2leaflet的demo:https://github.com/KoRiGaN/Vue2Leaflet

下载后可以运行里面的例子,在examples文件夹内,该文件夹本身就是一个完整的项目

打开该文件夹

cmd 走到该文件夹位置(examples)

C:UsersAdministrator>F:

F:>cd F:peixun	estVueLeafletVue2Leaflet-masterexamples

F:peixun	estVueLeafletVue2Leaflet-masterexamples
pm link vue2-leaflet

F:peixun	estVueLeafletVue2Leaflet-masterexamples>npm install

F:peixun	estVueLeafletVue2Leaflet-masterexamples>npm run dev

  最后成功运行

原文地址:https://www.cnblogs.com/yingyigongzi/p/10730604.html