PH
phanikmr/leaflet-draw-ellipse
Ellipse drawing and editing plugin for Leaflet
leaflet-draw-ellipse
Adds support for drawing and editing ellipses in the Leaflet.draw plugin.
Important
Leaflet.draw-ellipse 0.1.0+ requires
- Leaflet 0.7 or higher
- Leaflet.draw 0.2.4
- Leaflet.ellipse
Usage
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.10/leaflet.draw.css"/>
<link rel="stylesheet" href="leaflet.draw-ellipse.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.10/leaflet.draw.js"></script>
<script src="leaflet.ellipse.js"></script>
<script src="leaflet.ellipse-draw.js"></script>
See Leaflet.draw and Leaflet.ellipse.
Options
You can configure the Leaflet.draw control by using the following options. They are the same as CircleOptions.
EllipseOptions
| Option | Type | Default | Description |
|---|---|---|---|
| shapeOptions | Leaflet Path options | See code | The options used when drawing the ellipse on the map. |
| repeatMode | Bool | false |
Determines if the draw tool remains enabled after drawing a shape. |
On this page
Contributors
GNU General Public License v3.0
Created July 13, 2017
Updated August 29, 2022



