moving rotated marker plugin extension for vue2-leaflet package
npm install vue2-leaflet-moving-rotated-markerbash
npm install --save vue2-leaflet-moving-rotated-marker
`
Demo
`bash
git clone git@github.com:luks87zg/vue2-leaflet-moving-rotated-marker.git
npm install
npm 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
$3
something like this
`html
v-for="driver in drivers"
:key="driver.uuid"
v-if="driver.location"
:lat-lng="getLocation(driver)"
:icon="getIcon(driver.uuid)"
@click="setCurrentDriver(driver)"
ref="driverMarker"
:duration="2000"
:rotationAngle="45"
/>
`
$3
#### option 1
In the same template file, at