summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-02-27 19:01:29 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-04 14:45:32 +0200
commitf5f10ec11989ccb403c2cd4261db74c44b263558 (patch)
tree8c88ee24819281609206e36c719eef617acb52b6 /include
parent491fce68790e05cd0a876815751dc5cb72a2761e (diff)
downloadqtlocation-mapboxgl-f5f10ec11989ccb403c2cd4261db74c44b263558.tar.gz
[core] Remove map zoom setters/getters
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 06772f2cd2..b05747df8d 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -64,7 +64,7 @@ public:
bool isPanning() const;
// Camera
- CameraOptions getCameraOptions(const EdgeInsets&) const;
+ CameraOptions getCameraOptions(const EdgeInsets& = {}) const;
void jumpTo(const CameraOptions&);
void easeTo(const CameraOptions&, const AnimationOptions&);
void flyTo(const CameraOptions&, const AnimationOptions&);
@@ -81,14 +81,7 @@ public:
void resetPosition(const EdgeInsets& = {});
// Zoom
- void scaleBy(double scale, optional<ScreenCoordinate> anchor, const AnimationOptions& animation);
- void setZoom(double zoom, const AnimationOptions& = {});
- void setZoom(double zoom, optional<ScreenCoordinate>, const AnimationOptions& = {});
- void setZoom(double zoom, const EdgeInsets&, const AnimationOptions& = {});
- double getZoom() const;
- void setLatLngZoom(const LatLng&, double zoom, const AnimationOptions& = {});
- void setLatLngZoom(const LatLng&, double zoom, const EdgeInsets&, const AnimationOptions& = {});
- void resetZoom();
+ void scaleBy(double scale, optional<ScreenCoordinate> anchor, const AnimationOptions& animation = {});
// Pitch
void pitchBy(double pitch, const AnimationOptions& animation = {});
@@ -159,9 +152,9 @@ public:
// Tile prefetching
//
// When loading a map, if `PrefetchZoomDelta` is set to any number greater than 0, the map will
- // first request a tile for `zoom = getZoom() - delta` in a attempt to display a full map at
- // lower resolution as quick as possible. It will get clamped at the tile source minimum zoom.
- // The default `delta` is 4.
+ // first request a tile for `zoom - delta` in a attempt to display a full map at lower
+ // resolution as quick as possible. It will get clamped at the tile source minimum zoom. The
+ // default `delta` is 4.
void setPrefetchZoomDelta(uint8_t delta);
uint8_t getPrefetchZoomDelta() const;