2.1.0 • Published 1 year ago

vue2-leaflet-polygonfillpattern v2.1.0

Weekly downloads
19
License
MIT
Repository
github
Last release
1 year ago

vue2-leaflet-polygonfillpattern

This is a polygon-fillPattern plugin extension for vue2-leaflet package

Important 2.0.0 change: The plugin needs to be imported with Vue.use as indicated below, and the component name has been enforced to l-polygon-fill-pattern.

Install

npm install --save vue2-leaflet-polygonfillpattern

Demo

demo gif

Check out the live demo

Usage

In main.js:

import PolygonFillpattern from "vue2-leaflet-polygonfillpattern";
...
Vue.use(PolygonFillpattern);

In your component:

<l-polygon-fill-pattern
  :lat-lngs="coordinates"
  ...
  fillPattern="IMAGE"
  imageScale="X"
/>
  • fillPattern can be any image url or asset (e.g. :fillPattern="require(...)")
  • imageScale is a number that defines the image scale (e.g. :imageScale="0.6")

Author

Guillaume Jounel

License

MIT polygon fillpattern plugin extension for vue2-leaflet package

2.1.0

1 year ago

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago