- if location.is_a?(Route)
  = render :partial => 'shared/location_marker', :collection => location.points, :as => :location, :locals => { :small => true, :main => main}
- else
  %a{:href => location_url(location)}
    %img{:src => "/images/#{stop_icon(location, main, small)}.png", :title => "#{location.full_name}", :alt => "#{location.full_name}", :style => icon_style(location, @lon, @lat, @zoom, small) }

- if location.is_a?(Route)
  = render :partial => 'shared/location_marker', :collection => location.points, :as => :location, :locals => { :small => true, :main => main}
- else
  %a{:href => location_url(location)}
    %img{:src => "/images/#{stop_icon(location, main, small)}.png", :title => "#{location.description}", :alt => "#{location.description}", :style => icon_style(location, @lon, @lat, @zoom, small) }

Use the description method for title and alt fields for markers
Use the description method for title and alt fields for markers
