A basic ellipse type for Leaflet, a JS library for interactive maps.
npm install leaflet-ellipseLeaflet.ellipse
===============
A basic ellipse type for Leaflet, a JS
library for interactive maps. Allows specification of semi-major and
semi-minor axis as well as a tilt degrees from west.
Supports Leaflet 1.0.0 or newer.
* Internet Explorer 10+
* Google Chrome
* Safari
* Firefox 17+
A demo is available on the Github Pages webpage for Leaflet.ellipse here.
Include the ellipse javasript file:
After instantiating the map create a new ellipse.
var ellipse = L.ellipse([51.5, -0.09], [500, 100], 90).addTo(map);
Factory method
L.ellipse(
* latlng - The position of the center of the ellipse.
* radii - The semi-major and semi-minor axis in meters
* tilt - The rotation of the ellipse in degrees from west
* options - Options dictionary to pass to L.Path
This code is provided under the Apache 2.0 license.