Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Disable fading when rendering still images - #942

Merged
brunoabinader merged 1 commit into
masterfrom
942-disable-fade-if-still-mode
Oct 14, 2015
Merged

brunoabinader merged 1 commit into
masterfrom
942-disable-fade-if-still-mode

Conversation

@brunoabinader

Copy link
Copy Markdown
Contributor

When using the static image rendering API, we have to disable fading.

image

@kkaefer kkaefer mentioned this pull request Mar 4, 2015
5 of 8 tasks
@mikemorris mikemorris added Node.js node-mapbox-gl-native bug labels Oct 13, 2015
@brunoabinader
brunoabinader force-pushed the 942-disable-fade-if-still-mode branch from 57205c1 to 5ea7d95 Compare October 14, 2015 00:34
@brunoabinader
brunoabinader force-pushed the 942-disable-fade-if-still-mode branch from 5ea7d95 to 9a97333 Compare October 14, 2015 18:49
@mikemorris

Copy link
Copy Markdown
Contributor

This looks 💯 now, thanks for hitting this @brunoabinader!

@bsudekum

Copy link
Copy Markdown

To clarify this change:

Labels which which fade while zooming should not fade while a static image is created. This is because if the label is in transition, it could potential never end it's transition and show up opaque as seen above.

This PR removes fading completely to make sure no label is opaque due to fading at render time.

Tested out this PR, tests looked great. @jfirebaugh good to merge this?

@jfirebaugh

Copy link
Copy Markdown
Contributor

👍

@brunoabinader
brunoabinader merged commit 9a97333 into master Oct 14, 2015
@brunoabinader
brunoabinader deleted the 942-disable-fade-if-still-mode branch October 14, 2015 20:56
@incanus incanus added the P1 label Nov 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Node.js node-mapbox-gl-native

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants