Just started to learn VUE, currently want to do a basic point of demo, about the map, with the leaflet plug-in, how to apply this plug-in?

because of project problems at work, I learned a little bit about the basics of VUE,. At present, I want to do a basic demo, to load maps using leaflet plug-ins, including trying to introduce Baidu Maps later. The difficulty now is that I don"t know how to use leaflet, in VUE to achieve the effect of map loading and display.

Mar.23,2021

npm install vue2-leaflet-- save

https://github.com/KoRiGaN/Vu.

you can actually use it first, and then take a look at the source code to learn how people encapsulate vue components and reference them. Questions can be communicated in issues with the correct posture on github, and then, or you can learn how to make your package into a npm package.

Menu