Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Leaflet utility function on geometries
JavaScript HTML Makefile
Branch: master

Merge pull request #29 from Marcussacapuces91/patch-1

Ensure the ratio is between 0 and 1 *before* any tests

README.md

Leaflet.GeometryUtil

Build Status

  • Tested with stable Leaflet 0.7.0

Usage

Check out online documentation.

Development

Running tests in command-line

    sudo apt-get install nodejs phantomjs
  • Ready !
    make test

Changelog

master

  • Nothing changed yet.

0.4.0

  • Same version as v0.3.3, new release as v0.4.0 to keep numbering coherent as a new feature has been added

0.3.3

  • Add bearing and destination functions (thanks @doublestranded)

0.3.2

  • Use a soft dependency for Leaflet (thanks Erik Escoffier)

0.3.1

  • Make sure interpolateOnLine() always returns a L.LatLng object (thanks Justin Manley)

0.3.0

  • Added UMD style initialization (thanks @PerLiedman)
  • Added readable distance (thanks @Mylen)
  • Fix side effects on latlngs with closest() (thanks @AndrewIngram)

0.2.0

  • Locate point on line
  • Rotate point around center
  • Fixed bug if closest point was on last segment

0.1.0

  • Line subpart extraction
  • Line lengths
  • Angle and slope computation
  • Line reverse
  • Line interpolation

0.0.1

  • Initial working version

License

  • BSD New

Authors

Makina Corpus

Something went wrong with that request. Please try again.