Opened 7 years ago

Closed 4 years ago

#28 closed task (fixed)

For Workouts with gpx data, show a static capture of the map with the ride in the dashboard

Reported by: borja Owned by:
Priority: major Milestone: OpenWorkouts 0.1
Component: maps Keywords:


Same thing endomondo and strava do.

As we are using leaflet for the maps handling, there are some interesting plugins and tools we can use:

Basically the idea is, server-side, generate a small image with the map where a line is drawn with the overlay of the gpx. That image should be saved somewhere (blob?) and should be updated if the user updates the workout by uploading a new file.

Change History (1)

comment:1 Changed 4 years ago by borja

  • Milestone changed from OpenWorkouts 0.2 to OpenWorkouts 0.1
  • Resolution set to fixed
  • Status changed from new to closed

After looking at the options using leaflet plugins, I found none we could easily implement, so I decided to go on a different route.

Implemented here: [44/OpenWorkouts-current] (darcs) and here changeset:d1c4782/OpenWorkouts-git (git) (detailed info in the patch/commit messages)

The drawback of this approach is that we need Chrome/Chromium? installed on the machine running OpenWorkouts (also, the map generation is not 100% reliable on some archs and browser version, like openbsd, as the map appears like having a dimmed grey layer over the map).

Anyway, this is a solution that works for now. Let's reopen this in the future if we need to find another way to do it.

Note: See TracTickets for help on using tickets.