Coder Social home page Coder Social logo

denisbraud / leaflet.geometryutil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makinacorpus/leaflet.geometryutil

0.0 1.0 0.0 1.16 MB

Leaflet utility function on geometries

Home Page: http://makinacorpus.github.io/Leaflet.GeometryUtil/

License: BSD 3-Clause "New" or "Revised" License

HTML 5.05% JavaScript 94.95%

leaflet.geometryutil's Introduction

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 yet.

0.8.0

  • Update leaflet dependency to >=0.7.0 (#64, thanks @kozze89)
  • Add nClosestLayer (#62, thanks @haoliangyu)

0.7.2

  • Fix #59, closest method using a shallow copy of latLngs => deep copy now

0.7.1

  • Fix closest method for last segment on Polygon and nested Polygons

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

leaflet.geometryutil's People

Contributors

mdartic avatar leplatrem avatar fredericbonifas avatar marcussacapuces91 avatar andrewingram avatar bbecquet avatar haoliangyu avatar justinmanley avatar perliedman avatar

Watchers

Denis Braud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.