leaflet-velocity
Visualise velocity data on a leaflet layer
Science Score: 52.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
✓Institutional organization owner
Organization onaci has institutional domain (www.csiro.au) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Visualise velocity data on a leaflet layer
Basic Info
- Host: GitHub
- Owner: onaci
- License: other
- Language: JavaScript
- Default Branch: master
- Homepage: https://onaci.github.io/leaflet-velocity/
- Size: 5.82 MB
Statistics
- Stars: 642
- Watchers: 26
- Forks: 221
- Open Issues: 26
- Releases: 18
Topics
Metadata Files
README.md
leaflet-velocity

Version 2 Notice
As of version 2, leaflet-velocity is now under CSIRO's Open Source Software Licence Agreement, which is variation of the BSD / MIT License.
There are no other plans for changes to licensing, and the project will remain open source.
A plugin for Leaflet (v1.0.3, and v0.7.7) to create a canvas visualisation layer for direction and intensity of arbitrary velocities (e.g. wind, ocean current).
Live Demo: https://onaci.github.io/leaflet-velocity/
- Uses a modified version of WindJS for core functionality.
- Similar to wind-js-leaflet, however much more versatile (provides a generic leaflet layer, and not restricted to wind).
- Data input format is the same as output by wind-js-server, using grib2json.

Example use:
```javascript var velocityLayer = L.velocityLayer({ displayValues: true, displayOptions: { // label prefix velocityType: "Global Wind",
// leaflet control position
position: "bottomleft",
// no data at cursor
emptyString: "No velocity data",
// see explanation below
angleConvention: "bearingCW",
// display cardinal direction alongside degrees
showCardinal: false,
// one of: ['ms', 'k/h', 'mph', 'kt']
speedUnit: "ms",
// direction label prefix
directionString: "Direction",
// speed label prefix
speedString: "Speed",
}, data: data, // see demo/*.json, or wind-js-server for example data service
// OPTIONAL minVelocity: 0, // used to align color scale maxVelocity: 10, // used to align color scale velocityScale: 0.005, // modifier for particle animations, arbitrarily defaults to 0.005 colorScale: [], // define your own array of hex/rgb colors onAdd: null, // callback function onRemove: null, // callback function opacity: 0.97, // layer opacity, default 0.97
// optional pane to add the layer, will be created if doesn't exist // leaflet v1+ only (falls back to overlayPane for < v1) paneName: "overlayPane", }); ```
The angle convention option refers to the convention used to express the wind direction as an angle from north direction in the control.
It can be any combination of bearing (angle toward which the flow goes) or meteo (angle from which the flow comes),
and CW (angle value increases clock-wise) or CCW (angle value increases counter clock-wise). If not given defaults to bearingCCW.
The speed unit option refers to the unit used to express the wind speed in the control.
It can be m/s for meter per second, k/h for kilometer per hour or kt for knots. If not given defaults to m/s.
Public methods
| method | params | description |
| ------------ | ---------- | --------------------------------- |
| setData | {Object} | update the layer with new data |
| setOptions | {Object} | update the layer with new options |
Build / watch
shell
npm run watch
Reference
leaflet-velocity is possible because of things like:
Example data
Data shown for the Great Barrier Reef has been derived from CSIRO's eReefs products
License
CSIRO Open Source Software Licence Agreement (variation of the BSD / MIT License)
Owner
- Name: CSIRO Oceans and Atmosphere - Coastal Informatics Team
- Login: onaci
- Kind: organization
- Location: Australia
- Website: https://www.csiro.au/en/about/people/business-units/Oceans-and-Atmosphere
- Repositories: 13
- Profile: https://github.com/onaci
Citation (CITATION.cff)
cff-version: 1.2.0
title: Leaflet Velocity
version: 2.1.2
message: 'If you use this software, please cite it as below.'
type: software
url: "https://github.com/onaci/leaflet-velocity"
authors:
- given-names: Daniel Wild
family-names: Wild
email: mail@danwild.io
affiliation: >-
Commonwealth Scientific and Industrial Research
Organisation (CSIRO)
orcid: 'https://orcid.org/0000-0002-5127-2327'
GitHub Events
Total
- Issues event: 3
- Watch event: 44
- Issue comment event: 6
- Fork event: 10
Last Year
- Issues event: 3
- Watch event: 44
- Issue comment event: 6
- Fork event: 10
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Dan Wild | d****d@y****m | 71 |
| dependabot[bot] | 4****] | 18 |
| Luc Claustres | l****s@o****r | 5 |
| brentfraser | b****r@g****m | 3 |
| Gustavo Porto | g****o@q****m | 2 |
| Olegas Goncarovas | o****n@s****m | 2 |
| Myles McManus | m****c@g****m | 2 |
| Phil Krull | p****l@f****m | 2 |
| Seth Lutske | 5****2 | 2 |
| Pierre Vernier | p****2@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 69
- Total pull requests: 36
- Average time to close issues: 5 months
- Average time to close pull requests: 29 days
- Total issue authors: 59
- Total pull request authors: 11
- Average comments per issue: 2.22
- Average comments per pull request: 0.25
- Merged pull requests: 30
- Bot issues: 0
- Bot pull requests: 21
Past Year
- Issues: 3
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 3
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- claustres (3)
- tkrueger73 (3)
- SFSailor (2)
- AugustinMortier (2)
- kt7456 (2)
- leoGrg (2)
- xelaboy (2)
- maihannijat (2)
- chakravarthi-vl (1)
- crazyfrog30 (1)
- ghybs (1)
- cookmaster (1)
- saltynexus (1)
- dceejay (1)
- harksin (1)
Pull Request Authors
- dependabot[bot] (20)
- claustres (4)
- ogix (2)
- brentfraser (2)
- slutske22 (1)
- MikeScheurwater (1)
- hotfudgecake (1)
- phil-krull (1)
- mylesmc123 (1)
- pvernier (1)
- portothree (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- npm 8,299 last-month
- Total docker downloads: 767
-
Total dependent packages: 9
(may contain duplicates) -
Total dependent repositories: 58
(may contain duplicates) - Total versions: 56
- Total maintainers: 1
npmjs.org: leaflet-velocity
A custom layer for leaflet to visualise arbitrary velocities
- Homepage: https://github.com/onaci/leaflet-velocity#readme
- License: See LICENSE in LICENSE.md
-
Latest release: 2.1.4
published almost 3 years ago
Rankings
Maintainers (1)
proxy.golang.org: github.com/onaci/leaflet-velocity
- Documentation: https://pkg.go.dev/github.com/onaci/leaflet-velocity#section-documentation
- License: other
-
Latest release: v2.1.4+incompatible
published almost 3 years ago
Rankings
Dependencies
- 691 dependencies
- @babel/core ^7.5.4 development
- @babel/preset-env ^7.5.4 development
- babel-preset-es2015 ^6.9.0 development
- cssnano ^4.1.10 development
- gulp ^4.0.2 development
- gulp-babel ^8.0.0 development
- gulp-concat ^2.6.1 development
- gulp-concat-css ^3.1.0 development
- gulp-postcss ^8.0.0 development
- gulp-rename ^1.4.0 development
- gulp-uglify ^3.0.2 development