{"id":16921525,"url":"https://github.com/gberaudo/olwind","last_synced_at":"2025-03-22T11:30:57.576Z","repository":{"id":81178132,"uuid":"211283703","full_name":"gberaudo/olwind","owner":"gberaudo","description":"Wind layers for OpenLayers","archived":false,"fork":false,"pushed_at":"2021-05-19T15:47:38.000Z","size":5035,"stargazers_count":36,"open_issues_count":3,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-18T10:51:30.839Z","etag":null,"topics":["gradient","openlayers","particles","wind-layers"],"latest_commit_sha":null,"homepage":null,"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/gberaudo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-gpl-3.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-27T09:26:00.000Z","updated_at":"2024-11-12T05:47:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"3086285a-22ea-4f0e-bd75-2a4a29f66caa","html_url":"https://github.com/gberaudo/olwind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gberaudo%2Folwind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gberaudo%2Folwind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gberaudo%2Folwind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gberaudo%2Folwind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gberaudo","download_url":"https://codeload.github.com/gberaudo/olwind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244951188,"owners_count":20537334,"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":["gradient","openlayers","particles","wind-layers"],"created_at":"2024-10-13T19:52:14.555Z","updated_at":"2025-03-22T11:30:56.425Z","avatar_url":"https://github.com/gberaudo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenLayers wind layers\n\n## Goal\n\nProvide:\n- a smooth particules layer animating the movement of the wind;\n- an arrow layer displaying wind force and direction;\n- a gradient layer displaying wind force;\n\nParticles are kept while panning and zooming, contributing to a nice user experience.\n\nIt is compatible with OpenLayers 5 and probably OpenLayers 4.\n\n\n## Demo\nSee https://gberaudo.github.io/olwind\n\n\n## Blog post\nSee https://github.com/gberaudo/olwind/blob/master/blog.md\n\n\n## Local dev\n```\ngit clone https://github.com/gberaudo/olwind.git\ncd olwind\nnpm install\nnpm start\n```\n\n## Limitations / Contribution ideas\n\n\n- handling map rotation\n  - arrows are shifted (OpenLayers bug?);\n  - custom layers dimensions is fix;\n- handling soft-zoom\n  - when the browser uses softzoom (ctrl + wheel on a DOM element) the WebGL layer is shifted;\n- particle speed changes with resolution, it should be fixed (in pixels / frame);\n- WebGL gradient should use a nicer looking gradient (see OL heatmap);\n\nIf you are interested in working on one of these items, create an issue or contact me so that we can discuss it.\n\n\n## Other interesting projects\n\n- https://github.com/sakitam-fdd/wind-layer\n\n\n## Custom dataset\n\nIf you want to use your own data, you need to provide 3 files:\n\n- metadata.json\n```json\n{\n  \"extent\":[576551.1954449099,5667450.411567883,1300927.6096102786,6160637.315193227],\n  \"width\":233,\n  \"height\":347\n}\n```\n\nWhere:\n  - extent: the geographical extent of the dataset;\n  - width: the number of columns of the dataset;\n  - height: the number of rows of the dataset;\n\n- u.bin et v.bin\n  the horizontal and vertical speeds as a 32 bit array of floating points.\n  the indices in these files map to the following layout:\n  ```\n  9, 10, 11, 12\n  5,  6,  7,  8\n  1,  2,  3,  4\n  ```\n\n## Licenses\n\nThe project is dual licensed:\n- BSD-2 clause for its ease of use and reuse;\n- GPL-3 as a tribute to Richard Stallman's incredible work for liberty.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgberaudo%2Folwind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgberaudo%2Folwind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgberaudo%2Folwind/lists"}