![Vue.js使用Leaflet地图 Vue.js使用Leaflet地图](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
参考:https://blog.csdn.net/Joshua_HIT/article/details/72860171
vue2leaflet的demo:https://github.com/KoRiGaN/Vue2Leaflet
下载后可以运行里面的例子,在examples文件夹内,该文件夹本身就是一个完整的项目
打开该文件夹
cmd 走到该文件夹位置(examples)
C:\Users\Administrator>F: F:\>cd F:\peixun\testVueLeaflet\Vue2Leaflet-master\examples F:\peixun\testVueLeaflet\Vue2Leaflet-master\examples\npm link vue2-leaflet F:\peixun\testVueLeaflet\Vue2Leaflet-master\examples>npm install F:\peixun\testVueLeaflet\Vue2Leaflet-master\examples>npm run dev
最后成功运行