diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-02-27 19:01:29 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-04 14:45:32 +0200 |
commit | f5f10ec11989ccb403c2cd4261db74c44b263558 (patch) | |
tree | 8c88ee24819281609206e36c719eef617acb52b6 /bin | |
parent | 491fce68790e05cd0a876815751dc5cb72a2761e (diff) | |
download | qtlocation-mapboxgl-f5f10ec11989ccb403c2cd4261db74c44b263558.tar.gz |
[core] Remove map zoom setters/getters
Diffstat (limited to 'bin')
-rw-r--r-- | bin/render.cpp | 8 |
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); |