leaflet-irregular-channel

1.2.1 • Public • Published

leaflet-irregular-channel

a leaflet plugin for creating a irregular channel

Requirements

* leaflet1.7.1

demo

Instructions

installing

npm install leaflet-irregular-channel -S

including

import irregularChannel from 'leaflet-irregular-channel';
or irregularChannel require('leaflet-irregular-channel');

Usage example

  const data = [
    {
      lat: 24.43683529482618, 
      lng: 118.04363250732423,
      widthLeft: 0,
      widthRight: 0
    },
    {
      lat: 24.396507684805687, 
      lng: 118.12808990478517,
      widthLeft: 200,
      widthRight: 100
    },
    {
      lat: 24.473400349324073,
      lng: 118.21907043457033,
      widthLeft: 100,
      widthRight: 200
    } 
  ]
  let channelInstance = irregularChannel(data, map);

Readme

Keywords

Package Sidebar

Install

npm i leaflet-irregular-channel

Weekly Downloads

2

Version

1.2.1

License

ISC

Unpacked Size

162 kB

Total Files

6

Last publish

Collaborators

  • jacky131