Skip to content

phanikmr/leaflet-draw-ellipse

Repository files navigation

leaflet-draw-ellipse

Adds support for drawing and editing ellipses in the Leaflet.draw plugin.

From Alt text in association with Alt text

Important

Leaflet.draw-ellipse 0.1.0+ requires

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.

Alt text

Alt text

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.

Releases

No releases published

Packages

No packages published