zekefarwell / josm-strava-heatmap

A browser extension that simplifies getting the TMS imagery url for using the Strava Heatmap in JOSM
MIT License
62 stars 3 forks source link

Strava April 2024 maps update - resulting in wrong heatmap links. #13

Open Jasskurn opened 4 months ago

Jasskurn commented 4 months ago

Strava updated it entire map and heatmap webpage's in early April 2024. This results in the extension sending the wrong type of heatmap link.

There is now a much larger range of heatmaps available. It appears the extension only creates links for the old list of heatmaps. If you choose one of the newer heatmaps (eg "All Foot Sports") the extension creates a link for "all" including cycling etc.

Appears the extension can still produce links if they are for the (old?) names, eg run, bicycle, etc

zekefarwell commented 4 months ago

Thanks for the report. I saw the heads up from @kafkersmash in https://github.com/zekefarwell/josm-strava-heatmap/issues/11#issuecomment-2046187206 but things didn't seem immediately broken and I've been a bit busy.

Here's the code where the sport string is selected. It only accepts a value from the those that were previously available.
https://github.com/zekefarwell/josm-strava-heatmap/blob/6e35157728365d308d8a217fe969a7ff3fc5bee8/background.js#L10-L27

This list can be updated with the new values and mappings. Seems like "Ride" in the sports menu now corresponds to a new */sport_Ride/* tile url and "All Cycle Sports" corresponds to the previously available */ride/* url. Lots of new sports in the list now, including a number that may not be too useful for OSM mapping (Pickleball mapping? 😄). The new virtual activities may not be suitable for OSM mapping at all. Seems like they are from indoor activities, not real GPS traces. Ideally I'd find a way to directly get the tile url path out of the page so I don't need to maintain a list and mapping like this.