https://github.com/phanikmr/leaflet-draw-ellipse
Ellipse drawing and editing plugin for Leaflet
https://github.com/phanikmr/leaflet-draw-ellipse
javascript leaflet-draw leaflet-map leaflet-plugin
Last synced: about 1 year ago
JSON representation
Ellipse drawing and editing plugin for Leaflet
- Host: GitHub
- URL: https://github.com/phanikmr/leaflet-draw-ellipse
- Owner: phanikmr
- License: gpl-3.0
- Created: 2017-07-13T11:02:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T07:44:59.000Z (about 6 years ago)
- Last Synced: 2025-01-27T16:47:25.207Z (over 1 year ago)
- Topics: javascript, leaflet-draw, leaflet-map, leaflet-plugin
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leaflet-draw-ellipse
Adds support for drawing and editing ellipses in the Leaflet.draw plugin.
From
 in association with

# Important
Leaflet.draw-ellipse 0.1.0+ requires
+ [Leaflet 0.7](https://github.com/Leaflet/Leaflet/releases/tag/v0.7) or higher
+ [Leaflet.draw 0.2.4](https://github.com/Leaflet/Leaflet.draw/releases/tag/v0.2.4)
+ [Leaflet.ellipse](https://github.com/jdfergason/Leaflet.Ellipse)
## Usage
See [Leaflet.draw](https://github.com/Leaflet/Leaflet.draw#using) and [Leaflet.ellipse](https://github.com/jdfergason/Leaflet.Ellipse#usage).


## Options
You can configure the Leaflet.draw control by using the following options. They are the same as [CircleOptions](https://github.com/Leaflet/Leaflet.draw#circleoptions).
### EllipseOptions
| Option | Type | Default | Description
| --- | --- | --- | ---
| shapeOptions | [Leaflet Path options](http://leafletjs.com/reference.html#path-options) | [See code](https://github.com/Leaflet/Leaflet.draw/blob/master/src/draw/handler/Draw.Circle.js#L7) | The options used when drawing the ellipse on the map.
| repeatMode | Bool | `false` | Determines if the draw tool remains enabled after drawing a shape.