{"id":19438811,"url":"https://github.com/danwild/wind-js-leaflet","last_synced_at":"2025-04-07T07:04:29.521Z","repository":{"id":78506588,"uuid":"54170746","full_name":"danwild/wind-js-leaflet","owner":"danwild","description":"Leaflet plugin to add visualisation overlay for wind direction, velocity, and temperature","archived":false,"fork":false,"pushed_at":"2017-02-13T02:28:16.000Z","size":5684,"stargazers_count":215,"open_issues_count":6,"forks_count":68,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-31T06:02:13.072Z","etag":null,"topics":["leaflet","temperature","velocity","visualisation","visualization","weather","wind-js-leaflet"],"latest_commit_sha":null,"homepage":"http://danwild.github.io/wind-js-leaflet/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danwild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-03-18T03:24:09.000Z","updated_at":"2025-03-27T06:49:22.000Z","dependencies_parsed_at":"2023-05-21T02:30:39.470Z","dependency_job_id":null,"html_url":"https://github.com/danwild/wind-js-leaflet","commit_stats":{"total_commits":48,"total_committers":1,"mean_commits":48.0,"dds":0.0,"last_synced_commit":"e40889e3db581870116893c74f0d1a6019859172"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fwind-js-leaflet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fwind-js-leaflet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fwind-js-leaflet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fwind-js-leaflet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danwild","download_url":"https://codeload.github.com/danwild/wind-js-leaflet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608150,"owners_count":20965952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leaflet","temperature","velocity","visualisation","visualization","weather","wind-js-leaflet"],"created_at":"2024-11-10T15:19:51.222Z","updated_at":"2025-04-07T07:04:29.503Z","avatar_url":"https://github.com/danwild.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wind-js-leaflet [![NPM version][npm-image]][npm-url]\nA plugin for Leaflet to add visualisation overlay of wind direction, wind velocity, and temperature.\nTo use this plugin, you will need to run your own [wind-js-server](https://github.com/danwild/wind-js-server) instance.\nThe data is 1 degree, 6 hourly data from [NOAA](http://nomads.ncep.noaa.gov/).\n\n## leaflet-velocity released\n**Consider using [leaflet-velocity](https://github.com/danwild/leaflet-velocity) instead of `wind-js-leaflet`, as it is more flexible and up to date.**\n\n## v2 Breaking Changes\nNow supports both leaflet version `0.7.7` and `1.0.3`.\nHowever this update brings one breaking change - how you initialise the plugin.\n\nv1 way to init: \n```javascript\nWindJSLeaflet({ options: 'here' });\n```\nv2 way to init: \n```javascript\nWindJSLeaflet.init({ options: 'here' });\n```\n\n![Screenshot](/screenshots/wind.gif?raw=true)\n\n## Install\n\n### Basic\nDownload zip and include `dist/wind-js-leaflet.js` and `dist/wind-js-leaflet.css` files using resource tags.\n\n### npm\n`npm install wind-js-leaflet`\n\n## Use\nDemo use here: http://danwild.github.io/wind-js-leaflet/\n\n## Dependencies\nPrior to loading `wind-js-leaflet`, you need to load:\n- [Leaflet](leafletjs.com)\n- [jQuery](https://jquery.com/)\n\n## Options\n```javascript\nlocalMode: true                                 // use a local data file to test before hitting a real wind-js-server\nmap: map,                                       // ref to your leaflet Map\nlayerControl: layerControl,                     // ref to your leaflet layer control\nuseNearest: false,                              // get nearest data to your ISO time string\ntimeISO: null,                                  // your ISO time string, falls back to current time (can also use WindJsLeaflet.setTime(time))\nnearestDaysLimit: 7,                            // the maximum range (±) to look for data \ndisplayValues: true,                            // whether or not to add a mouseover control to display values\ndisplayOptions: {\n   displayPosition: 'bottomleft',               // leaflet control position\n   displayEmptyString: 'No wind data'           // what to display in mouseover control when no data\n},\noverlayName: 'wind',                            // string to display for the overlay in your layer control\npingUrl: 'http://localhost:7000/alive',        // url to check service availability\nlatestUrl: 'http://localhost:7000/latest',     // url to get latest data with no required params   \nnearestUrl: 'http://localhost:7000/nearest',   // url to get data nearest a specified time ISO\nerrorCallback: handleError                      // callback function to get called on error\n```\n\n## Reference\n`wind-js-leaflet` is possible because of things like:\n- [L.CanvasOverlay.js](https://gist.github.com/Sumbera/11114288) (WindJSLeaflet v1)\n- [gLayers.Leaflet](https://github.com/Sumbera/gLayers.Leaflet) (WindJSLeaflet v2)\n- [grib2json](https://github.com/cambecc/grib2json)\n- [earth](https://github.com/cambecc/earth)\n- [WindJS](https://github.com/Esri/wind-js)\n\n## License\nMIT License (MIT)\n\n[npm-image]: https://badge.fury.io/js/wind-js-leaflet.svg\n[npm-url]: https://www.npmjs.com/package/wind-js-leaflet","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fwind-js-leaflet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanwild%2Fwind-js-leaflet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fwind-js-leaflet/lists"}