vue2-leaflet-movingmarker
This is a movingmarker plugin extension for vue2-leaflet package
Install
npm install --save vue2-leaflet-movingmarker
Demo
Enjoy here You can see the demo code in the file Map.vue
Usage
on <template> add
something like this
on <script> add
option 1
In the same template file, at <script>
part, this will make the component available only to the template in this file
... ... components: LMovingMarker ... ...
option 2
At main Vue configuration, this will make the component available to all templates in your app
...Vue
Access movingmarker layer directly
If you need to access other movingmarker methods, like slideTo(), you can do it with a ref on the movingmarker vue element and using the mapObject
property
... ......
...this$refsmovingMarkerRefmapObject...
Develop and build
npm install
npm run build
Author
License
MIT