X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/da11ecacb95a2820c87c3dc6dd7db77a741fc655..363155a2a86796d27ee9161f1ee9b74d6fa307e5:/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 index 000000000..85cca01f9 --- /dev/null +++ b/app/views/api/map/_bounds.xml.builder @@ -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)