app/maps/route_section_selector_map.rb
Method customize_map
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def customize_map(map, page)
layer = kml_layer([route_section_selector.itinerary.referential, route_section_selector.itinerary.route.line, route_section_selector.itinerary.route, route_section_selector.itinerary],
{ rendererOptions: { zIndexing: true }, styleMap: Design::JourneyPatternStyleMap.new(helpers).style_map })
page.assign 'journeyPatternLayer', layer