vue2-leaflet-polylineoffset

polyline offset plugin extension for vue2-leaflet package
1,478
Install
npm install vue2-leaflet-polylineoffset@1.0.9
Latest Version:1.0.9
Vue:2
License:MIT
Last Updated:Feb 25, 2020
Links: GitHub  ·  npm
Maintainer: maratumba

vue2-leaflet-polylineoffset

This is a Polyline Offset plugin extension for vue2-leaflet package.

Install

npm install --save vue2-leaflet-polylineoffset

Demo

git clone https://github.com/maratumba/vue2-leaflet-polylineoffset

# 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

Usage

on <template> add

<l-polyline-offset :lat-lngs="latlngs" :offset="offset" color="red" />

(all <l-polyline> options are available)

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

import LPolylineOffset from 'vue2-leaflet-polylineoffset'
...
export default {
    ...
    components: {
    LPolylineOffset,
    ...
    },
    ...
}
option 2

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

import Vue from 'vue'
import LPolylineOffset from 'vue2-leaflet-polylineoffset'
...
Vue.component('l-polyline-offset', LPolylineOffset)

Develop and build

npm install
npm run build

Author

maratumba

Readme adapted from polyline decorator plugin by jperelli

License

MIT polyline offset plugin extension for vue2-leaflet package

Related Packages

vue2-leaflet-markercluster

markercluster plugin extension for vue2-leaflet package

246,240 132
vue2-leaflet-geosearch

GeoSearch plugin extension for vue2-leaflet package

27,968 36
vue2-leaflet-googlemutant

googlemutant plugin extension for vue2-leaflet package

23,040 19
vue2-leaflet-rotatedmarker

rotatedmarker plugin extension for vue2-leaflet package

18,812 19
vue2-leaflet-locatecontrol

locatecontrol plugin extension for vue2-leaflet package

6,397 11

Version History

Version Released License
1.0.9 MIT
0.1.6 MIT
0.1.5 MIT
0.1.4 MIT
0.1.3 MIT