All Projects → onaci → leaflet-velocity

onaci / leaflet-velocity

Licence: other
Visualise velocity data on a leaflet layer

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to leaflet-velocity

Leaflet Velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 309 (-33.83%)
Mutual labels:  weather, leaflet, visualisation
AnimatedEnvironmentLayer
A custom arcgis js api layer to display GRIB data formatted as json as animated particles on a canvas
Stars: ✭ 41 (-91.22%)
Mutual labels:  weather, velocity, wind
WorldWeather
The largest three-dimensional web-based interactive browser of satellite, weather, climate, and other time-aware geospatial data on the web, built upon NASA's revolutionary WorldWind technology.
Stars: ✭ 49 (-89.51%)
Mutual labels:  weather, wind
Crest
An advanced ocean system implemented in Unity3D
Stars: ✭ 2,364 (+406.21%)
Mutual labels:  ocean, water
rainviewer-api-example
How to use RainViewer API: simple HTML + JS code which render an animated weather radar overlay on the map
Stars: ✭ 56 (-88.01%)
Mutual labels:  weather, leaflet
URPOcean
Ocean waves on URP for wide-range mobile devices (gles 3.0)
Stars: ✭ 98 (-79.01%)
Mutual labels:  ocean, water
wind-js-server
Service to expose Grib2 wind forecast data as JSON
Stars: ✭ 98 (-79.01%)
Mutual labels:  weather, wind
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 (+13.92%)
Mutual labels:  weather, leaflet
wp-plugin-trackserver
A WordPress plugin for GPS tracking and publishing
Stars: ✭ 34 (-92.72%)
Mutual labels:  leaflet
fishfrymap
Fish Fry Map project repository
Stars: ✭ 14 (-97%)
Mutual labels:  leaflet
clouds
🌦 A weather app for iOS, written in SwiftUI.
Stars: ✭ 26 (-94.43%)
Mutual labels:  weather
geogrid.js
Leaflet plugin for Visualizing Discrete Global Grid Systems
Stars: ✭ 37 (-92.08%)
Mutual labels:  leaflet
leaflet.migrationLayer
Migration data visualization on map
Stars: ✭ 125 (-73.23%)
Mutual labels:  leaflet
nexradaws
This python package is designed to provide query and download capabilities to the NEXRAD archive available on Amazon Web Services (AWS). https://aws.amazon.com/public-datasets/nexrad/
Stars: ✭ 32 (-93.15%)
Mutual labels:  weather
rain-geojson-sg
Straight-forward API server to convert rain area radar images (Singapore) to GeoJSON
Stars: ✭ 15 (-96.79%)
Mutual labels:  weather
Weather-app
This is a simple not complicated weather app, that I have built using openweather API, promises, await/async, and WebPack. you can find the live link below don't hesitate to check your local weather status at any point in time.
Stars: ✭ 18 (-96.15%)
Mutual labels:  weather
Weather-SwiftUI
A weather app that uses the Dark Sky API built using SwiftUI! Get the current weather for a particular location and check out the 5-day forecast!
Stars: ✭ 107 (-77.09%)
Mutual labels:  weather
openweather-laravel-api
Laravel OpenWeather API is a Laravel package to connect Open Weather Map API and get wether data in your own format laravel app.
Stars: ✭ 54 (-88.44%)
Mutual labels:  weather
raspi-weather
a weather application for the raspberry pi and the Pimorioni Inky pHAT.
Stars: ✭ 59 (-87.37%)
Mutual labels:  weather
Real-World-Weather
Unity project that displays the current weather in your location in real-time using the Dark Sky API
Stars: ✭ 39 (-91.65%)
Mutual labels:  weather

leaflet-velocity NPM version NPM Downloads

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.

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

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)

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