]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/export/embed.html.erb
Serve embedded maps through the assets pipeline
[rails.git] / app / views / export / embed.html.erb
diff --git a/app/views/export/embed.html.erb b/app/views/export/embed.html.erb
new file mode 100644 (file)
index 0000000..b683c26
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta charset="utf-8">
+    <title>OpenStreetMap Embedded</title>
+    <%= stylesheet_link_tag "embed", :media=> "screen" %>
+    <!--[if IE]>
+    <%= stylesheet_link_tag "leaflet.ie", :media=> "screen" %>
+    <![endif]-->
+    <%= javascript_include_tag "embed" %>
+  </head>
+  <body>
+    <div id="map"></div>
+  </body>
+</html>