Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.58 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.58 KB

Sector

A circle sector overlay (with a certain radius in meters, theta angle and azimuth) for Leaflet.

Extends Circle. Use Map#addLayer to add it to the map.

Installation

bower install leaflet.sector

Preparing your page

Include the single JavaScript file on your page somewhere after Leaflet:

<script src="bower_components/leaflet.sector/leaflet.sector.js"></script>

Usage

L.sector([50.5, 30.5], 200, 30, 45).addTo(map);

Creation

Factory Description
L.sector( <LatLng> LatLng, radius, theta, azimuth, <Path options> options? ) Instantiates a sector object given a geographical point, a radius in meters, theta angle, azimuth, and optionally an options object.