• Stars
    star
    254
  • Rank 160,264 (Top 4 %)
  • Language
    JavaScript
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Leaflet utility function on geometries

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

    npm install
  • Ready !
    npm test

Changelog

0.10.2

  • 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)

0.10.1

  • Enhance precision for meter values (metric / imperial) (#94, thanks @karlbeecken)

0.10.0

  • Add TypeScript definitions (#90, thanks @cdauth)

0.9.3

  • Increase locateOnLine() tolerance

0.9.2

  • Fixes a crash if a multilinestring has an element with only one vertex (fixes #84, thanks @runette)

0.9.1

  • Fix locateOnLine() doesn't return correct subline (#79, thanks @lepetittim)

0.9.0

  • Fix interpolateOnLine() doesn't return correct predecessor (#66, thanks @jb2b38)
  • Add angle() and destinationOnSegment() (#71, thanks @trandaison)

0.8.1

  • Remove a deprecated function in Leaflet 1.x (#69)

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

More Repositories

1

django-leaflet

Use Leaflet in your Django projects
JavaScript
712
star
2

django-safedelete

Mask your objects instead of deleting them from your database.
Python
678
star
3

Leaflet.TextPath

Show text along Polyline with Leaflet
JavaScript
285
star
4

Leaflet.FileLayer

Loads files locally (GeoJSON, KML, GPX) as layers using HTML5 File API
JavaScript
272
star
5

easydict

Access dict values as attributes (works recursively)
Python
260
star
6

django-geojson

django-geojson is a collection of helpers to (de)serialize (Geo)Django objects into GeoJSON.
Python
258
star
7

Leaflet.Snap

Enables snapping of draggable markers to polylines and other layers
JavaScript
198
star
8

DbToolsBundle

A Symfony bundle to backup, restore and anonymize your data
PHP
179
star
9

landez

Landez operates with tiles, arranges them together into images or builds MBTiles files
Python
136
star
10

Leaflet.Spin

Show a spinner on the map using Spin.js
HTML
134
star
11

django-screamshot

Web pages capture using Django & CasperJS
Python
107
star
12

Leaflet.MeasureControl

Leaflet control to mesure distances on the map
JavaScript
82
star
13

Leaflet.AlmostOver

Trigger mouse events when cursor is "almost" over a layer
JavaScript
73
star
14

Leaflet.LayerIndex

Spatial index of layer objects using RTree.js
JavaScript
66
star
15

Inkscape-Wireframe-Android

SVG UI elements for Android wireframe in Inkscape
58
star
16

Leaflet.RestoreView

Save and restore view from localStorage
HTML
50
star
17

django-templatetag-handlebars

Easily embed Handlebars.js templates in your django templates
JavaScript
48
star
18

django-mbtiles

Serve maps from MBTiles files
JavaScript
45
star
19

drupal_audit

Drupal Audit
Shell
43
star
20

django-mapentity

Generic CRUD for geographic data
JavaScript
42
star
21

php-twig-converter

A simple PHP script trying to convert PHPTemplate files to Twig
PHP
40
star
22

Leaflet.LineExtremities

Displays the extremities of a Polyline
JavaScript
34
star
23

android-archetypes

Maven Archetypes for Android
Java
30
star
24

django-appypod

Render OpenDocument files from templates, using Appy POD
Python
29
star
25

vms

Makina-States based Vagrant boxes
Shell
27
star
26

convertit

A generic format conversion Web API in Pyramid
Python
25
star
27

geolabel-maker

Data preparation for geospatial artificial intelligence
Jupyter Notebook
23
star
28

django-tracking-fields

A Django app allowing the tracking of objects field in the admin site.
Python
22
star
29

tutorials

Collection of tutorials grouped by theme
Jupyter Notebook
21
star
30

django-paperclip

Attach files to Django models
Python
19
star
31

Leaflet.OverIntent

Adds a mouseintent event that guess user intentions to hover layers!
HTML
19
star
32

php-bloom

Simple PHP Bloom filter
PHP
17
star
33

osm-mirror

OSM mirror - full stack
Shell
17
star
34

cassini-gl-style

A Mapbox GL style using the vector tile schema of OpenMapTiles, based on historic Cassini map style.
15
star
35

bureaux-de-vote-reconstruction

Une approche de la reconstruction automatique de la géométrie des bureaux de vote
PLpgSQL
15
star
36

osm-topo

Topographic OSM map style
Python
14
star
37

django-admin-watchdog

A simple Django app to register logs in admin backoffice.
Python
13
star
38

pwa-training

TP : construire une PWA pas à pas
CSS
12
star
39

Leaflet.Social

Very simple yet effective sharing buttons Leaflet control
HTML
11
star
40

docker-geodjango

Ubuntu based image with geodjango binary dependencies
Dockerfile
11
star
41

ODE

A web API and aggregator for human events
Python
11
star
42

drupal-gulpifier

Drupal module to ease Gulp frontend development workflow
PHP
11
star
43

polymaps-extensions

A set of extensions for polymaps
JavaScript
11
star
44

ImpOsm2pgRouting

Import OpenStreetMap network and make it available to pgRouting. Take care of updates.
PLpgSQL
9
star
45

makina-states

Python
9
star
46

php-lucene-query

Minimalistic, feature-rich, PHP Lucene syntax query builder
PHP
9
star
47

makina-slides

Slides Makina Corpus
CSS
9
star
48

drupal-ucms

Multi-site Drupal using the same database, with advanced layout management and content sharing.
PHP
8
star
49

drupal-sf-dic

Brings the Symfony 3 dependency injection container to Drupal 7 along with a limited Drupal 8 API compatibility layer.
PHP
7
star
50

libecw

C
7
star
51

react-pwa

JavaScript
7
star
52

livetitude

Free live map markers sharing !
JavaScript
7
star
53

screamshotter

Microservice to capture screenshots of web pages
Python
7
star
54

elections

Cartes électorales, données électorales, découpage des bureaux de vote...
JavaScript
5
star
55

drupal-netsmtp

Drupal SMTP module based upon PEAR::Net_SMTP
PHP
5
star
56

tif2geojson

TourInFrance to GeoJSON
Python
5
star
57

docker-fortivpn

Shell
5
star
58

apubsub

Async PubSub-like PHP API
PHP
5
star
59

Leaflet.Compass

Compass Plugin for leaflet and PhoneGap application
JavaScript
5
star
60

Leaflet.PolylineHandles

Allows to grab intermediary points on a polyline
JavaScript
5
star
61

drush-progressbar

Drush progress bar
PHP
4
star
62

rdiff-backup

clone of svn repo + debian patches
Python
4
star
63

accessimap-editeur-der

Editeur de documents en relief interactif (DERi)
JavaScript
4
star
64

iban-bundle

International Bank Account Number form type for Symfony
PHP
4
star
65

Leaflet.ForbiddenArea

Prohibit the placement of markers if they are too close to another layer.
JavaScript
4
star
66

osm-poi

Extract POIs from OpenStreetMap
Shell
4
star
67

dockerfiles

Shell
4
star
68

gatsby-plugin-uninline-styles

Un-inline CSS from GatsbyJS generated HTML files
JavaScript
4
star
69

moodwalkr

Pedestrian routing application using OpenStreetMap data
Python
4
star
70

toulouse1830

Visualizing Toulouse in 1830
3
star
71

ortho44-2018

JavaScript
3
star
72

hugo-mc-docs

Hugo makinacorpus branded theme for rendering documentation
JavaScript
3
star
73

drupal-quotedown

Drupal QuoteDown module - Support for PageDown editor and Markdown filter
JavaScript
3
star
74

django-ode

Django ODE
CSS
3
star
75

osmfusion

optimized user interface to import data into OpenStreetMap
JavaScript
3
star
76

vuejs-d3-skeleton

A skeleton for a D3.js + Vue.js component
Vue
3
star
77

docker-openconnect

Docker image for openconnect
Shell
3
star
78

mapbox-gl-path

Create path with or without help of various directions API
TypeScript
3
star
79

php-layout

Object representation of a display layout, based upon CSS basic functionnality
PHP
3
star
80

exemple-symfony-vuejs

Projet d'exemple pour débuter une application Symfony/Vue.js
PHP
3
star
81

drf-examples

Examples for Django Rest Framework tutorials
Python
3
star
82

accessimap-lecteur-der

Lecteur de documents en relief interactif (DERi)
JavaScript
3
star
83

osm-transport-editor

Edit transport relations in OSM
JavaScript
3
star
84

screamshot

Python lib to capture screenshots of web applications
Python
2
star
85

drupal-predictable_tests

WARNING, this project may be moved to drupal.org as soon as "full project access" is granted
PHP
2
star
86

monitoring-bundle

Simple monitoring tooling and Symfony bundle
PHP
2
star
87

corpus-gitlabrunner

Shell
2
star
88

django-activated-mixin

A Django model mixin allowing related objects to be deactivated instead of deleted when they are protected.
Python
2
star
89

autocomplete-bundle

Autocomplete widget and form type for Symfony
PHP
2
star
90

redis-bundle

Redis API standalone client manager or optional Symfony bundle configurator
PHP
2
star
91

vt-elevation

Client-side elevation profile with vector tiles
JavaScript
2
star
92

ODK_collect

Mobile application for ODK servers
Java
2
star
93

corpus-odoo

Python
2
star
94

php-access-control

Attribute-based access-control micro-framework
PHP
2
star
95

osm-light

CartoCSS
2
star
96

terra-draw-map

JavaScript
2
star
97

drupal-static-passthrough

Drupal 8 Module - Passthrough static files to Drupal 8
PHP
2
star
98

jQuery-Mobile-Font-Awesome

Font Awesome integration with jQuery Mobile
CSS
2
star
99

php-goat-domain

Legacy code for implementing entity repositories, alive only for legacy projects maintainance purpose.
PHP
2
star
100

drupalindustry.recipe.drush

Helpers to install drush and generate a "project-specific" drush script
Python
2
star