Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do the colours mean? Perhaps you can add a legend #4

Open
Wikinaut opened this issue Oct 25, 2021 · 5 comments
Open

What do the colours mean? Perhaps you can add a legend #4

Wikinaut opened this issue Oct 25, 2021 · 5 comments

Comments

@Wikinaut
Copy link

No description provided.

@Wikinaut
Copy link
Author

Looks, as if the colours denote the travel duration in one-hour steps?

@mandrasch
Copy link

mandrasch commented Oct 30, 2021

Hey, just another fan of this tool here. Color coding from source code:

const durationCategoryColour = c => {
	if (c === -1) return '#999' // unknown duration
	if (c === 0) return '#333' // 0
	if (c === 1) return '#191' // < 1h
	if (c === 2) return '#2d1' // 1h-2h
	if (c === 3) return '#d4d411' // 2h-4h
	if (c === 4) return '#d91' // 4h-8h
	if (c === 5) return '#d41' // 8h-16h
	if (c === 6) return '#a41' // > 16h
	return '#999'
}

@md42
Copy link

md42 commented Feb 1, 2022

Does it make sense to show a hint on the map in case this gets asked more often? Had the same question

@juliuste
Copy link
Owner

juliuste commented May 20, 2022

Thanks for suggesting this! I'd be happy to have this feature, but AFAIK there are - quite bafflingly - no responsive out-of-the-box libraries for mapbox-gl that one could use here, and I currently don't have too much time to build a legend on my own, even though the task shouldn't take too long. Will look into that in the future, however, and if someone else wants to do so before, I'd also be grateful 🙂

This was referenced May 23, 2022
@schlomo
Copy link

schlomo commented Jul 3, 2022

I think that a "help" or "explanations" or "legend" link in the footer would be just enough, no need for a fancy solution.

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

No branches or pull requests

5 participants