Unable to remove transition on raster
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
mapbox-gl 0.5.3
Chrome:
### Steps to Trigger Behavior
I have a 12 raster layers added to my map at one time. Initially all layers have an opacity of zero. I then have a recursive function that loops through the layers and will give an opacity 0.5 to one layer, and will give the previous layer an opacity zero in order to create an animation. The problem is I notice a blinking effect in the animation. It seems like this is due to a transition property when changing the opacity. I have tried adding the `'raster-fade-duration': 0` to the layer's paint property, but that doesn't seem to do anything. Does anyone have any suggestions to remove this blinking?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported blinking with mapbox-gl 0.5.3, Chrome, 12 raster layers, and the described opacity animation. Investigate how the raster-fade-duration paint property is applied during those changes; done means determining whether the transition can be disabled or documenting the missing information needed to address it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100