File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 24
24
(if (and (:gpx plan)
25
25
(:daily-plans plan))
26
26
(assoc plan :markers
27
- (map (fn [pp]
28
- (assoc pp :popup-message
29
- (str " <small>"
30
- " <strong>" (:label pp) " </strong>"
31
- " <br />"
32
- (Math/floor (:kilometers pp))
33
- " km / ("
34
- (Math/floor (:cumulative-distance pp))
35
- " km) ▲ "
36
- (Math/floor (:elevation pp))
37
- " </small>" )))
38
- (butlast (plan/daily-stats plan))))
27
+ (concat (:markers plan '())
28
+ (map (fn [pp]
29
+ (assoc pp :popup-message
30
+ (str " <small>"
31
+ " <strong>" (:label pp) " </strong>"
32
+ " <br />"
33
+ (Math/floor (:kilometers pp))
34
+ " km / ("
35
+ (Math/floor (:cumulative-distance pp))
36
+ " km) ▲ "
37
+ (Math/floor (:elevation pp))
38
+ " </small>" )))
39
+ (butlast (plan/daily-stats plan)))))
39
40
plan))
40
41
41
42
(defn add-km-markers [plan]
You can’t perform that action at this time.
0 commit comments