Skip to content

MoebiusSolutions/leaflet-ellipse

Repository files navigation

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.

Build

npm install
npm run build

About

Ellipse support for leaflet.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published