Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-geometryutil

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-geometryutil

Leaflet utility functions on geometries

  • 0.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
decreased by-1.29%
Maintainers
5
Weekly downloads
 
Created
Source

Leaflet.GeometryUtil

Build Status

  • Tested with stable Leaflet 0.7.0
  • Tested with Leaflet 1.0.0-rc.3

Usage

Using Node:

    npm install leaflet-geometryutil

Or browser:

    <script src="leaflet.geometryutil.js"></script>

Check out online documentation.

Development

Running tests in command-line

    sudo apt-get install nodejs phantomjs

    npm install
  • Ready !
    npm test

Changelog

master

  • Nothing changed yet.

0.7.0

  • Tested for Leaflet 1.0.0-rc.3

0.6.0

  • Add nested arrays for layer param in closest method

0.5.1

  • Fix closestLayer to be able to work with GeoJSON nested layers
  • Restrict closest method to Array and L.Polyline (L.Polygon extend L.Polyline)

0.5.0

  • Add function layersWithin() (#34, thanks @haoliangyu)
  • Fix safety check on the ratio value in ``interpolateOnLine()` (#29, thanks @Marcussacapuces91)

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

Keywords

FAQs

Package last updated on 13 Sep 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc