diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-06-26 14:27:44 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-06-26 21:46:15 -0700 |
commit | ac2ad993a594e309362787e0697ff1727b799e8e (patch) | |
tree | 8347096c4f0c0de64bfadb514387b44d27427f66 /include/mbgl/map | |
parent | 7b22caddd0bb58677cc29a29c005bec621368d4b (diff) | |
download | qtlocation-mapboxgl-ac2ad993a594e309362787e0697ff1727b799e8e.tar.gz |
Fit to coordinates
Whoever determined the boundaries of the District of Columbia did not have fit-to-bounds implementations in mind. With this change, shapes that are not unrotated rectangles fit much, much better.
Diffstat (limited to 'include/mbgl/map')
-rw-r--r-- | include/mbgl/map/map.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index abd93fad6a..6fd5e96063 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -100,6 +100,7 @@ public: double getZoom() const; void setLatLngZoom(LatLng latLng, double zoom, Duration = Duration::zero()); void fitBounds(LatLngBounds bounds, EdgeInsets padding, Duration duration = Duration::zero()); + void fitBounds(AnnotationSegment segment, EdgeInsets padding, Duration duration = Duration::zero()); void resetZoom(); double getMinZoom() const; double getMaxZoom() const; |