Skip to content

Conversation

@phpduy
Copy link
Contributor

@phpduy phpduy commented Nov 19, 2025

We previously used rasterContrast as a shortcut to implement the marker background color in night mode (it actually coincidentally worked for some colors). The proper solution is to use rasterEmissiveStrength. For more information, you can read here: https://docs.mapbox.com/map-styles/standard/guides/#emissive-strength--custom-layers

The video below also shows the current progress of the refactor in the core app 😉

Screen_recording_20251120_050353.webm

Copy link
Collaborator

@mani-apps mani-apps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good finda mate 🙇

@phpduy phpduy merged commit 1b4db5a into staging Nov 20, 2025
4 checks passed
@phpduy phpduy deleted the fix/zoom-in-marker-background-color-is-wrong branch November 20, 2025 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants