Skip to content

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

License

Notifications You must be signed in to change notification settings

tookko/leaflet.sector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published