GithubHelp home page GithubHelp logo

enochbayode / gog-animated Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sholance/gog-animated

1.0 0.0 0.0 4.45 MB

layer for OpenLayers

License: Other

JavaScript 98.52% Python 0.71% EJS 0.77%

gog-animated's Introduction

OpenLayers wind layers

Goal

Provide:

  • a smooth particules layer animating the movement of the wind;
  • an arrow layer displaying wind force and direction;
  • a gradient layer displaying wind force;

Particles are kept while panning and zooming, contributing to a nice user experience.

It is compatible with OpenLayers 5 and probably OpenLayers 4.

Demo

See https://gberaudo.github.io/olwind

Blog post

See https://github.com/gberaudo/olwind/blob/master/blog.md

Local dev

git clone https://github.com/gberaudo/olwind.git
cd olwind
npm install
npm start

Limitations / Contribution ideas

  • handling map rotation
    • arrows are shifted (OpenLayers bug?);
    • custom layers dimensions is fix;
  • handling soft-zoom
    • when the browser uses softzoom (ctrl + wheel on a DOM element) the WebGL layer is shifted;
  • particle speed changes with resolution, it should be fixed (in pixels / frame);
  • WebGL gradient should use a nicer looking gradient (see OL heatmap);

If you are interested in working on one of these items, create an issue or contact me so that we can discuss it.

Other interesting projects

Custom dataset

If you want to use your own data, you need to provide 3 files:

  • metadata.json
{
  "extent":[576551.1954449099,5667450.411567883,1300927.6096102786,6160637.315193227],
  "width":233,
  "height":347
}

Where:

  • extent: the geographical extent of the dataset;

  • width: the number of columns of the dataset;

  • height: the number of rows of the dataset;

  • u.bin et v.bin the horizontal and vertical speeds as a 32 bit array of floating points. the indices in these files map to the following layout:

    9, 10, 11, 12
    5,  6,  7,  8
    1,  2,  3,  4
    

Licenses

The project is dual licensed:

  • BSD-2 clause for its ease of use and reuse;
  • GPL-3 as a tribute to Richard Stallman's incredible work for liberty.

gog-animated's People

Contributors

gberaudo avatar fredj avatar sholance avatar

Stargazers

Enoch Bayode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.