diff options
author | Mike Morris <mikemorris@users.noreply.github.com> | 2016-04-05 15:54:11 -0400 |
---|---|---|
committer | Mike Morris <mikemorris@users.noreply.github.com> | 2016-04-05 17:57:46 -0400 |
commit | 5832825427dbf2ba27639f4e009b50062687b488 (patch) | |
tree | 95ff483c4199ea1c7401f4fcc55f11395d658a21 /bin | |
parent | e886eb95455335818972cafd65923a7fe8d83e49 (diff) | |
download | qtlocation-mapboxgl-5832825427dbf2ba27639f4e009b50062687b488.tar.gz |
add pitch to bin/render.cpp
Diffstat (limited to 'bin')
-rw-r--r-- | bin/render.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/render.cpp b/bin/render.cpp index 0bcb5dff73..70571f7f75 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -24,6 +24,7 @@ int main(int argc, char *argv[]) { double lat = 0, lon = 0; double zoom = 0; double bearing = 0; + double pitch = 0; int width = 512; int height = 512; @@ -42,6 +43,7 @@ int main(int argc, char *argv[]) { ("lat,y", po::value(&lat)->value_name("degrees")->default_value(lat), "Latitude in degrees") ("zoom,z", po::value(&zoom)->value_name("number")->default_value(zoom), "Zoom level") ("bearing,b", po::value(&bearing)->value_name("degrees")->default_value(bearing), "Bearing") + ("pitch,p", po::value(&pitch)->value_name("degrees")->default_value(pitch), "Pitch") ("width,w", po::value(&width)->value_name("pixels")->default_value(width), "Image width") ("height,h", po::value(&height)->value_name("pixels")->default_value(height), "Image height") ("class,c", po::value(&classes)->value_name("name"), "Class name") @@ -89,6 +91,7 @@ int main(int argc, char *argv[]) { map.setLatLngZoom({ lat, lon }, zoom); map.setBearing(bearing); + map.setPitch(pitch); if (debug) { map.setDebug(debug ? mbgl::MapDebugOptions::TileBorders | mbgl::MapDebugOptions::ParseStatus : mbgl::MapDebugOptions::NoDebug); |