Permalink
Browse files

New template for the KML data

  • Loading branch information...
Chris Gansen
Chris Gansen committed Dec 12, 2011
1 parent 08ac937 commit 74da85721438f8e8ff5ac7aa2d8c36299c1f85c8
Showing with 19 additions and 0 deletions.
  1. +19 −0 app/views/things/show.kml.erb
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<kml xmlns="http://www.opengis.net/kml/2.2">
+<Document>
+ <Style id="linestyle_red">
+ <LineStyle>
+ <color>7f0000ff</color>
+ <width>4</width>
+ </LineStyle>
+ </Style>
+
+ <% for thing in @things %>
+ <Placemark>
+ <name><%= thing.address %></name>
+ <styleUrl>#linestyle_red</styleUrl>
+ <%= raw(thing.kml) %>
+ </Placemark>
+ <% end %>
+</Document>
+</kml>

0 comments on commit 74da857

Please sign in to comment.