mapbox / mapbox/mapbox-gl-js

How to make a time series animation with Source and Layer

Open
#13,044 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

How to make a time series animation with Source and Layer using the endpoint 'myendoint.com/weather/maps/${type}/${date}/tiles/{z}/{x}/{y}' where the date is dynamic to take 6 hours ahead of the current time, saving the previous images in cache so as to avoid unnecessary requests and the animation runs cleanly.

`

`


![GravacaodeTela2024-01-16as10 21 28-ezgif com-video-to-gif-converter](https://github.com/mapbox/mapbox-gl-js/assets/29619004/25ecca96-4445-43a8-8069-88963b342edb)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Source and Layer usage shown in the issue, then review how the dynamic tile endpoint, six-hour date range, caching, and animation interact. Done should be a clear, reproducible approach for running the time series animation while retaining prior images and avoiding unnecessary tile requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, performance, web-dev
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.