2.0.1 • Published 4 years ago

@jjwtay/leaflet.ellipse v2.0.1

Weekly downloads
50
License
ISC
Repository
github
Last release
4 years ago

leaflet-ellipse

Leaflet plugin for drawing ellipse. Demo

Important

Leaflet.draw-ellipse requires

How to

Traditional

Include Leaflet.ellipse.js in your html

<script src='/path/to/leaflet.ellipse></script>

Webpack as non es6 module

import './path/to/leaflet.ellipse'

ES6 module

TODO

API

Factory method

L.ellipse(
          <LatLng> center,
          [<Number>, <Number>] radii,
          <Number> tilt,
        {  
          <...Leaflet Polyline Options>
        }
)

* center - Leaflet latlng (optional - [0,0])
* radii  - Array [semiMajor,semiMinor] meters (optional - 100)
* tilt - bearing in degrees (optional - 0)
* any leaflet polygon options 

Also Checkout

leaflet.arc - Leaflet Arc drawing.

leaflet.draw-arc - Leaflet Draw support for leaflet.arc.

leaflet.box - Leaflet Box(rotatable rectangle) drawing.

leaflet.draw-box - Leaflet Draw support for leaflet.box.

License

This code is provided under the Apache 2.0 license.

2.0.1

4 years ago

2.0.0

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago