@jjwtay/leaflet.ellipse

2.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @jjwtay/leaflet.ellipse

Weekly Downloads

61

Version

2.0.1

License

ISC

Unpacked Size

164 kB

Total Files

13

Last publish

Collaborators

  • jjwtay