Adds support for drawing and editing ellipses in the Leaflet.draw plugin.
Leaflet.draw-ellipse 0.1.0+ requires
- Leaflet 0.7 or higher
- Leaflet.draw 0.2.4
- Leaflet.ellipse
<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.
You can configure the Leaflet.draw control by using the following options. They are the same as CircleOptions.
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. |