diff options
author | Sudarsana Babu Nagineni <sudarsana.babu@mapbox.com> | 2019-03-04 17:33:43 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-08 18:36:03 +0200 |
commit | 2f88e8257b83b77f6c06c86c99f542976e7d5199 (patch) | |
tree | 5118632397e15b590c9f96998e367689f0c53fa8 /include | |
parent | 5954eea345677682479ad5df4d6b059737efd7f0 (diff) | |
download | qtlocation-mapboxgl-2f88e8257b83b77f6c06c86c99f542976e7d5199.tar.gz |
[core] Remove Constrain mode options
setLatLngBounds() API allows the map to be constrained to certain Lat/Lng
limits, so there is no need of having Constrain mode options on Map to
constrain the map boundaries.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 4 | ||||
-rw-r--r-- | include/mbgl/map/map_options.hpp | 17 | ||||
-rw-r--r-- | include/mbgl/map/mode.hpp | 8 |
3 files changed, 0 insertions, 29 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 096bb90131..56aaffbcb7 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -90,10 +90,6 @@ public: void setNorthOrientation(NorthOrientation); NorthOrientation getNorthOrientation() const; - // Constrain mode - void setConstrainMode(ConstrainMode); - ConstrainMode getConstrainMode() const; - // Viewport mode void setViewportMode(ViewportMode); ViewportMode getViewportMode() const; diff --git a/include/mbgl/map/map_options.hpp b/include/mbgl/map/map_options.hpp index 13772332a8..1a72837c4c 100644 --- a/include/mbgl/map/map_options.hpp +++ b/include/mbgl/map/map_options.hpp @@ -36,23 +36,6 @@ public: MapMode mapMode() const; /** - * @brief Sets the map constrain mode. This can be used to limit the map - * to wrap around the globe horizontally. By default, it is set to - * HeightOnly. - * - * @param mode Map constrain mode. - * @return reference to MapOptions for chaining options together. - */ - MapOptions& withConstrainMode(ConstrainMode mode); - - /** - * @brief Gets the previously set (or default) constrain mode. - * - * @return constrain mode. - */ - ConstrainMode constrainMode() const; - - /** * @brief Sets the viewport mode. This can be used to flip the vertical * orientation of the map as some devices may use inverted orientation. * diff --git a/include/mbgl/map/mode.hpp b/include/mbgl/map/mode.hpp index 4ee289d855..64b9271e4e 100644 --- a/include/mbgl/map/mode.hpp +++ b/include/mbgl/map/mode.hpp @@ -15,14 +15,6 @@ enum class MapMode : EnumType { Tile // a once-off still image of a single tile }; -// We can choose to constrain the map both horizontally or vertically, or only -// vertically e.g. while panning. -enum class ConstrainMode : EnumType { - None, - HeightOnly, - WidthAndHeight, -}; - // Satisfies embedding platforms that requires the viewport coordinate systems // to be set according to its standards. enum class ViewportMode : EnumType { |