From 8e42582c52d39153a1e1a0b14599b63c38c68531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 4 Feb 2015 20:08:12 +0100 Subject: update static image rendering executable --- bin/render.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index c791152d1d..fad6600cf7 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -3,10 +3,6 @@ #include #include -#include -#include -#include - #include #include #include @@ -32,8 +28,8 @@ int main(int argc, char *argv[]) { double zoom = 0; double bearing = 0; - int width = 256; - int height = 256; + int width = 512; + int height = 512; double pixelRatio = 1.0; std::string output = "out.png"; std::string cache_file = "cache.sqlite"; @@ -100,16 +96,14 @@ int main(int argc, char *argv[]) { view.resize(width, height, pixelRatio); map.resize(width, height, pixelRatio); - map.setLatLonZoom(LatLng(lat, lon), zoom); + map.setLatLngZoom({ lat, lon }, zoom); map.setBearing(bearing); - std::unique_ptr pixels; - // Run the loop. It will terminate when we don't have any further listeners. map.run(); // Get the data from the GPU. - pixels = view.readPixels(); + auto pixels = view.readPixels(); const unsigned int w = width * pixelRatio; const unsigned int h = height * pixelRatio; -- cgit v1.2.1