mapbox / mapbox/mapbox-gl-js

Question: Animate Line-,ImageLayer & Marker at same frame.

Open
#12,252 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Here are different layers (Image, Line, Circle, Marker(rotation-Icon)). All lines and circles should be lying on the same borders and edges of the image. In this example i move them to bottom (at the end they stay at the correct position).
By moving the mouse i pan all this layers. Looks like rendering of image and Marker is fast, but line and circle is a bit laggy.

before moving
image

while moving
![image](https://user-images.githubusercontent.com/76100214/191760094-3e1c1516-4891-494c-ad6c-edd1aa205914.png)

Would it be possible to render it synchron?
I call setData & setCoordinate at same time. Also i sync my moveEvent with `requestAnimationFrame`.

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

The issue names no source files or tests; start by reproducing the supplied Image, Line, Circle, and Marker layers while panning with requestAnimationFrame. Compare their frame timing during simultaneous setData and setCoordinate calls, and define done as a confirmed rendering behavior or a documented, verifiable resolution for synchronizing the layers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.