diff options
| author | Bruno Perles | 2015-12-21 11:25:21 +0100 |
|---|---|---|
| committer | Bruno Perles | 2015-12-21 11:25:21 +0100 |
| commit | 59cf9d58b61887ab275089fae096ceaea134214d (patch) | |
| tree | 4be46557bec68d97f23bb9e92492d79b2764cbda | |
| parent | b2fd34fd7e369f6d76c3c9aa83ea254c76e78e4d (diff) | |
| download | chouette-core-59cf9d58b61887ab275089fae096ceaea134214d.tar.bz2 | |
Add missing Rank + increase stroke width
| -rw-r--r-- | app/maps/design/route_section_style_map.rb | 2 | ||||
| -rw-r--r-- | app/models/route_sections_selector.rb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/maps/design/route_section_style_map.rb b/app/maps/design/route_section_style_map.rb index 2c94bb3a0..01fbafe0f 100644 --- a/app/maps/design/route_section_style_map.rb +++ b/app/maps/design/route_section_style_map.rb @@ -36,7 +36,7 @@ class Design::RouteSectionStyleMap < Design::GenericStyleMap :labelYOffset => -15, :strokeColor => "green", :strokeOpacity => 1, - :strokeWidth => 2, + :strokeWidth => 5, :strokeLineCap => "round", :strokeLineJoin => "round", :strokeDashstyle => "solid", diff --git a/app/models/route_sections_selector.rb b/app/models/route_sections_selector.rb index b3c984559..0db09ed25 100644 --- a/app/models/route_sections_selector.rb +++ b/app/models/route_sections_selector.rb @@ -38,7 +38,7 @@ class RouteSectionsSelector route_section = Chouette::RouteSection.find_by(departure: departure.stop_area, arrival: arrival.stop_area) end - sections << Section.new(departure.stop_area, arrival.stop_area, route_section) + sections << Section.new(departure.stop_area, arrival.stop_area, index, route_section) end end end @@ -59,10 +59,10 @@ class RouteSectionsSelector class Section extend ActiveModel::Translation - attr_accessor :departure, :arrival, :route_section_id + attr_accessor :departure, :arrival, :rank, :route_section_id - def initialize(departure, arrival, route_section = nil) - @departure, @arrival = departure, arrival + def initialize(departure, arrival, rank, route_section = nil) + @departure, @arrival, @rank = departure, arrival, rank self.route_section = route_section end |
