]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/map/_bounds.xml.builder
Move xml gen. into view for (old) nodes, ways, relations, map
[rails.git] / app / views / api / map / _bounds.xml.builder
diff --git a/app/views/api/map/_bounds.xml.builder b/app/views/api/map/_bounds.xml.builder
new file mode 100644 (file)
index 0000000..85cca01
--- /dev/null
@@ -0,0 +1,8 @@
+attrs = {
+  "minlat" => format("%.7f", @bounds.min_lat),
+  "minlon" => format("%.7f", @bounds.min_lon),
+  "maxlat" => format("%.7f", @bounds.max_lat),
+  "maxlon" => format("%.7f", @bounds.max_lon)
+}
+
+xml.bounds(attrs)