aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_stop_areas/show.kml.slim
blob: 4327436ed9faa4ce5f3f4aa0ed632eb61b712153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
doctype XML

kml xmlns="http://www.opengis.net/kml/2.2" 
  document
    - if !params["children"].nil?
      - @stop_area.children.each do |child|
        placemark id="#{child.id}" 
          name = child.name
          stop_area_type = child.stop_area_type
          = (child.position or child.default_position).kml_representation.html_safe

    - elsif !params["routing"].nil?
      - @stop_area.routing_stops.each do |child|
        placemark id="#{child.id}"
          name = child.name
          stop_area_type = child.stop_area_type
          = (child.position or child.default_position).kml_representation.html_safe
    - else
      placemark id="#{@stop_area.id}" 
        name = @stop_area.name
        stop_area_type = @stop_area.stop_area_type
        = (@stop_area.position or @stop_area.default_position).kml_representation.html_safe