[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/osm e39aaf48e1 6/7: Configurable track style
From: |
ELPA Syncer |
Subject: |
[elpa] externals/osm e39aaf48e1 6/7: Configurable track style |
Date: |
Thu, 10 Mar 2022 11:57:52 -0500 (EST) |
branch: externals/osm
commit e39aaf48e12f63c6d04d8567887503502b824417
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Configurable track style
---
osm.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/osm.el b/osm.el
index c84f74c6f0..0cf24384f3 100644
--- a/osm.el
+++ b/osm.el
@@ -105,6 +105,11 @@
"Colors of pins."
:type '(alist :key-type symbol :value-type (list string string)))
+(defcustom osm-track-style
+
"stroke:#00A;stroke-width:10;stroke-linejoin:round;stroke-linecap:round;opacity:0.4;"
+ "SVG style used to draw tracks."
+ :type'string)
+
(defcustom osm-home
(let ((lat (bound-and-true-p calendar-latitude))
(lon (bound-and-true-p calendar-longitude)))
@@ -730,7 +735,8 @@ xmlns='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'>
(when-let (track (cdr overlays))
(let (last)
(format
- "<path stroke='#00A' stroke-width='10'
stroke-linejoin='round' stroke-linecap='round' opacity='0.4' fill='none'
d='%s'/>"
+ "<path style='%s' d='%s'/>"
+ osm-track-style
(mapconcat
(pcase-lambda (`(,beg . ,end))
(prog1
- [elpa] externals/osm updated (6b7014c4a9 -> 02a00fcd5c), ELPA Syncer, 2022/03/10
- [elpa] externals/osm 3bab32bb2f 1/7: Simplify, ELPA Syncer, 2022/03/10
- [elpa] externals/osm 4d8016f41a 3/7: Fix gpx track artifacts, ELPA Syncer, 2022/03/10
- [elpa] externals/osm 2dd0885fc1 4/7: Minor optimization, ELPA Syncer, 2022/03/10
- [elpa] externals/osm 4d044d3400 2/7: Simplify2, ELPA Syncer, 2022/03/10
- [elpa] externals/osm 02a00fcd5c 7/7: Minor cleanup, ELPA Syncer, 2022/03/10
- [elpa] externals/osm e39aaf48e1 6/7: Configurable track style,
ELPA Syncer <=
- [elpa] externals/osm 757e5f1627 5/7: Improve track drawing, ELPA Syncer, 2022/03/10