
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Leaflet.GreatCircle
Advanced tools
Draw accurately projected circles on Leaflet maps.
The existing L.Circle functionality draws a plain geometric circle on the map. However, due to the nature of map projections, this in not an accurate way to represent a circle on a sphere.
Our shape computes the multipolygon boundary that includes the points on a globe having a distance to "center" less than "radius".
We determine the lat/lon of each bearing around the compass at
that distance using the the geodesy
library by Chris Veness.
Since leaflet doesn't play well without a browser, you're likely
using bower. In this case, just bower install Leaflet.GreatCircle
.
We do also support node, though, so you can npm install Leaflet.GreatCircle
.
L.greatCircle(centerLatLng, radiusInMeters, { fill : 'red' }).addTo(map);
FAQs
Draw accurately projected circles on a leaflet map
The npm package Leaflet.GreatCircle receives a total of 1 weekly downloads. As such, Leaflet.GreatCircle popularity was classified as not popular.
We found that Leaflet.GreatCircle 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.