An open API service indexing awesome lists of open source software.

https://github.com/mudin/vue2-leaflet-rotatedmarker

rotated marker plugin extension for vue2-leaflet package
https://github.com/mudin/vue2-leaflet-rotatedmarker

leaflet markers rotation vue vue2-leaflet

Last synced: 3 months ago
JSON representation

rotated marker plugin extension for vue2-leaflet package

Awesome Lists containing this project

README

          



License


npm version


HitCount


size

# vue2-leaflet-rotatedmarker

This is a [RotatedMarker plugin](https://github.com/bbecquet/Leaflet.RotatedMarker) extension for [vue2-leaflet package](https://github.com/KoRiGaN/Vue2Leaflet)

## Install

npm install --save vue2-leaflet-rotatedmarker

## Demo

git clone https://github.com/imudin/vue2-leaflet-rotatedmarker
cd vue2-leaflet-rotatedmarker
yarn
yarn example

# or alternatively using npm
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](example.vue)

## Usage

### on <template> add

something like this






### on <script> add

#### option 1

In the same template file, at `` part, this will make the component available only to the template in this file

import Vue2LeafletRotatedMarker from 'vue2-leaflet-rotatedmarker'
...
export default {
...
components: {
'v-rotated-marker': Vue2LeafletRotatedMarker
...
},
...
}

#### option 2

At main Vue configuration, this will make the component available to all templates in your app

import Vue from 'vue'
import Vue2LeafletRotatedMarker from 'vue2-leaflet-rotatedmarker'
...
Vue.component('v-rotated-marker', Vue2LeafletRotatedMarker)

## Develop and build

npm install
npm run build

## Author

[mudin](https://github.com/mudin/)

## License

MIT
rotated marker plugin extension for vue2-leaflet package