
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
leaflet-semicircle
Advanced tools
Allows drawing semicircles on leaflet maps.
It's an extension of Leaflet's L.Circle
,
and behaves like L.Circle
if the a semicircle of almost 360 degrees is displayed.
Updated for use with leaflet 1.1.0.
L.SemiCircle /
L.SemiCircleMarker factories: L.semiCircle /L.SemiCircleMarker
|
Options:startAngle : start angle of the semicircle stopAngle : stop angle of the semicircleAngles are defined like compass courses: 0 = north, 90 = east, etc. |
L.SemiCircle.setStartAngle(angle) | Set the start angle of the circle to angle and redraw. |
L.Circle.setStopAngle(angle) | Set the stop angle of the circle to angle and redraw. |
L.Circle.setDirection(direction, size) | Set the startAngle to direction - (0.5 * size) and the stopAngle to direction + (0.5 * size) and redraw. |
The plugin provides two ways to only display a part of the circle:
options
map and set startAngle
and stopAngle
.setDirection(direction, size)
to display a semicircle of size
degrees at direction
.Using options.startAngle
and options.stopAngle
:
L.semiCircle([51.5, -0.09], {
radius: 500,
startAngle: 45,
stopAngle: 135
}).addTo(map);
Draw the same semicircle using setDirection(direction, size)
:
L.semiCircle([51.5, -0.09], {radius: 500})
.setDirection(90, 90)
.addTo(map);
L.Circle
with an extension of itself.FAQs
Draw semicircles on Leaflet maps
We found that leaflet-semicircle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.