All Projects β†’ danwild β†’ Leaflet Velocity

danwild / Leaflet Velocity

Licence: other
Visualise velocity data on a leaflet layer

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Leaflet Velocity

leaflet-velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 467 (+51.13%)
Mutual labels:  weather, leaflet, visualisation
Api
πŸ„Windy API, or Windy Leaflet Plugin, let you put animated weather map into your website and enjoy rich ecosystem of Leaflet library.
Stars: ✭ 532 (+72.17%)
Mutual labels:  weather, leaflet
rainviewer-api-example
How to use RainViewer API: simple HTML + JS code which render an animated weather radar overlay on the map
Stars: ✭ 56 (-81.88%)
Mutual labels:  weather, leaflet
himawari-rx
πŸ“‘ Receive images from weather satellite Himawari-8 via HimawariCast.
Stars: ✭ 21 (-93.2%)
Mutual labels:  weather
dawn
A startpage called "dawn"
Stars: ✭ 162 (-47.57%)
Mutual labels:  weather
Leaflet.pixioverlay
Bring Pixi.js power to Leaflet maps
Stars: ✭ 264 (-14.56%)
Mutual labels:  leaflet
Vim Buffet
IDE-like Vim tabline
Stars: ✭ 304 (-1.62%)
Mutual labels:  visualisation
Leaflet-active-area
A Leaflet plugin to center the map not in the center of the map but inside a DIV. Useful for responsive design.
Stars: ✭ 99 (-67.96%)
Mutual labels:  leaflet
Openweathermap Php Api
A PHP API to parse weather data and weather history from OpenWeatherMap.org.
Stars: ✭ 293 (-5.18%)
Mutual labels:  weather
Weather
A Weather app in SwiftUI.
Stars: ✭ 260 (-15.86%)
Mutual labels:  weather
Noaa Apt
NOAA APT weather satellite image decoder, for Linux, Windows, RPi 2+ and OSX
Stars: ✭ 257 (-16.83%)
Mutual labels:  weather
is-osm-uptodate
Find outdated nodes in OpenStreetMap
Stars: ✭ 16 (-94.82%)
Mutual labels:  leaflet
Localradio
πŸ“» LocalRadio is "Radio for Cord-Cutters" – a Software-Defined Radio (SDR) app for your Mac and mobile devices. With an inexpensive RTL-SDR USB device, LocalRadio provides a casual, home-based radio listening experience for your favorite local frequencies - FM broadcasts/free music/news/sports/weather/public safety & aviation scanner/etc.
Stars: ✭ 269 (-12.94%)
Mutual labels:  weather
VZ Clock
Watch as a smart home module
Stars: ✭ 21 (-93.2%)
Mutual labels:  weather
Leaflet Ant Path
🌿🐜 Creates a leaflet polyline with a 'ant-path' animated flux
Stars: ✭ 296 (-4.21%)
Mutual labels:  leaflet
covid-dashboard
Help welcomed if you have expertise in public health web technology, data modeling and munging, or visualization.
Stars: ✭ 106 (-65.7%)
Mutual labels:  visualisation
Leaflet.timeline
Display arbitrary GeoJSON on a map with a timeline slider and play button
Stars: ✭ 291 (-5.83%)
Mutual labels:  leaflet
Krane
Kubernetes RBAC static Analysis & visualisation tool
Stars: ✭ 254 (-17.8%)
Mutual labels:  visualisation
leaflet-rs
A wasm-bindgen wrapper for Leaflet.js
Stars: ✭ 19 (-93.85%)
Mutual labels:  leaflet
Epiboard
Web Extension β€” A new tab page extension with material design and useful features πŸ†• πŸŽ‰
Stars: ✭ 262 (-15.21%)
Mutual labels:  weather

leaflet-velocity NPM version NPM Downloads

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://danwild.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.

Screenshot

Example use:

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', '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

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

MIT License (MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].