Leaflet GeometryUtil
JSON →Leaflet GeometryUtil is a utility library that extends Leaflet's core functionality with a wide array of geometric operations. It provides functions for calculating distances, bearings between points, interpolating points along polylines, locating points on lines, finding closest points or layers to a given geographic coordinate, rotating points around a center, and managing layers within a specified radius. The library seamlessly integrates with Leaflet's `L.LatLng` and layer objects, providing a cohesive API for complex geospatial computations directly within Leaflet applications. The current stable version is 0.10.3, released in December 2023, indicating active maintenance with several minor and patch releases per year to add features and address bugs. A key differentiator is its deep integration with the Leaflet ecosystem, offering a comprehensive set of geometric tools that feel native to Leaflet, rather than a standalone geometry library. It has included robust TypeScript definitions since version 0.10.0, significantly enhancing the developer experience for TypeScript projects by providing strong type checking and intellisense for all its utilities.
Traffic · last 30 days ↑250% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇩🇪 Germany · 🇪🇸 Spain