Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ellipse type for Leaflet
JavaScript
branch: master

Update README.md

List supported browsers
latest commit 66b8c2f23e
@jdfergason authored
Failed to load latest commit information.
LICENSE Initial Commit
README.md Update README.md
l.ellipse.js Change radii parameter
l.ellipse.min.js Change radii parameter

README.md

Leaflet.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.

Requires Leaflet 0.6.0 or newer.

Supported browsers

  • Internet Explorer 10+
  • Google Chrome
  • Safari
  • Firefox 17+

Demo

A demo is available on the Github Pages webpage for Leaflet.ellipse here.

Usage

Include the ellipse javasript file:

<script src="l.ellipse.js"></script>

After instantiating the map create a new ellipse.

var ellipse = L.ellipse([51.5, -0.09], [500, 100], 90).addTo(map);

API

Factory method

L.ellipse( <LatLng> latlng, <Radii> radii, <Number> tilt, 
           <Path options> options? )
  • 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

License

This code is provided under the Apache 2.0 license.

Something went wrong with that request. Please try again.