@mirei/leaflet-semicircle-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Description

Semicircle plugin for leaflet library.

This is the TypeScript port of the semicircle plugin by developed by @jieter.

Install

npm i @mirei/leaflet-semicircle-ts

Usage

const options: SemicircleOptions = {
    startAngle: 0,
    stopAngle: 120
};
const latLng: LatLngExpression = {
    lat: 26.212313,
    lng: 127.679153
};


const semicircle = new Semicircle(latLng, options);
semicircle.addTo(map);
semicircle.setStyle({
    color: "black",
    fill: "#00a86b",
    radius: 500,
    weight: 3
});

Semicircle extends Circle class from Leaflet. Likewise, SemicircleOptions extends the CircleMarkerOptions interface. Therefore, you can use all the options that you can use with the Circle class.

Package Sidebar

Install

npm i @mirei/leaflet-semicircle-ts

Weekly Downloads

269

Version

1.0.6

License

MIT

Unpacked Size

76.1 kB

Total Files

13

Last publish

Collaborators

  • mirei