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 --- include/mbgl/map/map.hpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'include/mbgl/map') 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 anchor, const AnimationOptions& animation); - void setZoom(double zoom, const AnimationOptions& = {}); - void setZoom(double zoom, optional, 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 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; -- cgit v1.2.1