From f5f10ec11989ccb403c2cd4261db74c44b263558 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 27 Feb 2019 19:01:29 +0200 Subject: [core] Remove map zoom setters/getters --- bin/render.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') 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); -- cgit v1.2.1