]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/map/_bounds.xml.builder
Refactor user_blocks form to use bootstrap
[rails.git] / app / views / api / map / _bounds.xml.builder
index 85cca01f90a27cc06c94e2b8b7c25d73b0616b1c..0a4181c37bd4cd96732723c374e1e6a62d9bd91b 100644 (file)
@@ -1,8 +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)
+  "minlat" => format("%<lat>.7f", :lat => bounds.min_lat),
+  "minlon" => format("%<lon>.7f", :lon => bounds.min_lon),
+  "maxlat" => format("%<lat>.7f", :lat => bounds.max_lat),
+  "maxlon" => format("%<lon>.7f", :lon => bounds.max_lon)
 }
 
 xml.bounds(attrs)