Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New template for the KML data

  • Loading branch information...
commit 74da85721438f8e8ff5ac7aa2d8c36299c1f85c8 1 parent 08ac937
Chris Gansen authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 app/views/things/show.kml.erb
View
19 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>
Please sign in to comment.
Something went wrong with that request. Please try again.