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

Support new sport dropdown #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pepve
Copy link

@pepve pepve commented Nov 21, 2024

The Strava heatmap site has a new sport dropdown. And the mapping from the selected sport in the query parameters to the tiles url changed. It is now:

Dropdown Label sport map_type
All All all
All Foot Sports RunLike run
Run Run sport_Run
Trail Run TrailRun sport_TrailRun
Walk Walk sport_Walk
Hike Hike sport_Hike
All Cycle Sports RideLike ride
Ride Ride sport_Ride
Mountain Bike Ride MountainBikeRide sport_MountainBikeRide
... ... ...

So in the first commit in this PR I wrote some new mapping logic to implement this.

I then noticed that using the map_type value in the name for the layer in JOSM layer could be confusing. Who would guess that "run" means all foot sports and "sport_Run" means only running? So I changed the code to use the sport value in the name for the layer in JOSM. I think that one is easier to understand, here is a screenshot:

Screenshot from 2024-11-21 01-30-57

Fixes #13.

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.

Strava April 2024 maps update - resulting in wrong heatmap links.
1 participant