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.
bower install leaflet.sector
Include the single JavaScript file on your page somewhere after Leaflet:
<script src="bower_components/leaflet.sector/leaflet.sector.js"></script>
L.sector([50.5, 30.5], 200, 30, 45).addTo(map);
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. |