Leaflet utility functions on geometries
npm install leaflet-geometryutilLeaflet.GeometryUtil
====================
* Tested with stable Leaflet 0.7.0
* Tested with Leaflet 1.0.0-rc.3
Usage
-----
Using Node:
```
npm install leaflet-geometryutil
Or browser:
``
Check out online documentation.
Development
-----------
* Install nodejs
`
sudo apt-get install nodejs
npm install
`
* Ready !
``
npm test
Changelog
---------
* add support for closestOnCircle (#101, thanks to @danyhoron)
* use leaflet's earth radius in destination function (#96, thanks to @viliusstanga)
* Changed imports to acommodate to new ngx-leaflet organization (#97, thanks to @rtrevinnoc)
* Enhance precision for meter values (metric / imperial) (#94, thanks @karlbeecken)
* Add TypeScript definitions (#90, thanks @cdauth)
* Increase locateOnLine() tolerance
* Fixes a crash if a multilinestring has an element with only one vertex (fixes #84, thanks @runette)
* Fix locateOnLine() doesn't return correct subline (#79, thanks @lepetittim)
* Fix interpolateOnLine() doesn't return correct predecessor (#66, thanks @jb2b38)angle()
* Add and destinationOnSegment() (#71, thanks @trandaison)
* Remove a deprecated function in Leaflet 1.x (#69)
* Update leaflet dependency to >=0.7.0 (#64, thanks @kozze89)nClosestLayer
* Add (#62, thanks @haoliangyu)
* Fix #59, closest method using a shallow copy of latLngs => deep copy now
* Fix closest method for last segment on Polygon and nested Polygons
* Tested for Leaflet 1.0.0-rc.3
* Add nested arrays for layer param in closest method
* Fix closestLayer to be able to work with GeoJSON nested layers
* Restrict closest method to Array and L.Polyline (L.Polygon extend L.Polyline)
* Add function layersWithin() (#34, thanks @haoliangyu)
* Fix safety check on the ratio value in interpolateOnLine() (#29, thanks @Marcussacapuces91)
* Same version as v0.3.3, new release as v0.4.0 to keep numbering coherent as a new feature has been added
* Add bearing and destination functions (thanks @doublestranded)
* Use a soft dependency for Leaflet (thanks Erik Escoffier)
* Make sure interpolateOnLine() always returns a L.LatLng object (thanks Justin Manley)
* Added UMD style initialization (thanks @PerLiedman)
* Added readable distance (thanks @Mylen)
* Fix side effects on latlngs with closest() (thanks @AndrewIngram)
* Locate point on line
* Rotate point around center
* Fixed bug if closest point was on last segment
* Line subpart extraction
* Line lengths
* Angle and slope computation
* Line reverse
* Line interpolation
* Initial working version
License
-------
* BSD New
Authors
-------
* Benjamin Becquet
* Mathieu Leplatre
* Simon Thépot
* Nhinze
* Frédéric Bonifas
* Alexander Melard
