summaryrefslogtreecommitdiff
path: root/bin/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/render.cpp')
-rw-r--r--bin/render.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/render.cpp b/bin/render.cpp
index 1e7b210a4c..8fb7a8877f 100644
--- a/bin/render.cpp
+++ b/bin/render.cpp
@@ -91,9 +91,11 @@ int main(int argc, char *argv[]) {
}
map.getStyle().loadURL(style);
- map.setLatLngZoom({ lat, lon }, zoom);
- map.setBearing(bearing);
- map.setPitch(pitch);
+ map.jumpTo(CameraOptions()
+ .withCenter(LatLng { lat, lon })
+ .withZoom(zoom)
+ .withAngle(bearing)
+ .withPitch(pitch));
if (debug) {
map.setDebug(debug ? mbgl::MapDebugOptions::TileBorders | mbgl::MapDebugOptions::ParseStatus : mbgl::MapDebugOptions::NoDebug);