Skip to content

Commit 7938c3c

Browse files
committed
improve ylogger position dot
1 parent 9bf69b0 commit 7938c3c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎engines/ulogger/app/controllers/api/ulogger_controller.rb‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def addpos
101101
f.properties["marker-size"] = 2
102102
f.properties["marker-color"] = "#f6f5f4"
103103
f.properties["stroke"] = "transparent"
104+
f.properties.delete("stroke-width")
104105
f.properties["min-zoom"] = 14
105106
f.properties.delete("leading")
106107
f.save!
@@ -141,9 +142,11 @@ def image_properties(img)
141142
end
142143

143144
def location_properties
144-
{ "marker-size": "8",
145-
"marker-color": "#ff7800",
146-
"stroke": "#000000" }
145+
# a transparent ring around the km end marker, so its distance label stays readable
146+
{ "marker-size" => 16,
147+
"marker-color" => "transparent",
148+
"stroke" => "#ff7800",
149+
"stroke-width" => 4 }
147150
end
148151

149152
def description

0 commit comments

Comments
 (0)