Skip to content

Commit

Permalink
tweak: Update default polyline color to black, rather than nil
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson committed Dec 19, 2024
1 parent 8294fc3 commit fd92e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotcom/trip_plan/map.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule Dotcom.TripPlan.Map do

defp polyline_to_line(polyline) do
%{
color: Map.get(polyline, :color),
color: Map.get(polyline, :color, "#000000"),
coordinates: Map.get(polyline, :positions, []) |> invert_coordinates(),
width: Map.get(polyline, :weight, 4)
}
Expand Down

0 comments on commit fd92e0b

Please sign in to comment.