]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/map/_bounds.xml.builder
Write changeset subscribe/unsubscribe buttons using tag.button
[rails.git] / app / views / api / map / _bounds.xml.builder
index 8a38e21ea8cf16ee52d5a9f8a6d01cda503b431e..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)