vue2-leaflet-slidemarker
- 1.0.0 this version is the vue2-leaflet-movingmarker update
Install
npm install --save vue2-leaflet-slidemarker
Demo
git clone https://github.com/pumelotea/vue2-leaflet-slidemarker.gitcd vue2-leaflet-slidemarkeryarnyarn example # or alternatively using npm npm installnpm run example
Then you should be able to navigate with your browser and see the demo in http://localhost:4000/
You can see the demo code in the file example.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: LSlideMarker ... ...
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$refsmovingSlideRefmapObject...
License
MIT