diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-02-18 17:20:31 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-03-01 20:58:54 +0000 |
commit | fcaafcc428f932e36e195e6801855344798ca33e (patch) | |
tree | a399b12baaa652acf53f19ea1f36af34737dceeb /src/mbgl/source | |
parent | c17e95498349db7f459cd629f2d65b9f3bfb49c6 (diff) | |
download | qtlocation-mapboxgl-fcaafcc428f932e36e195e6801855344798ca33e.tar.gz |
[core] Replace std::array<double, N> usage in SourceInfo
Diffstat (limited to 'src/mbgl/source')
-rw-r--r-- | src/mbgl/source/source_info.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/source/source_info.hpp b/src/mbgl/source/source_info.hpp index 9e905d2b9e..db584d9e33 100644 --- a/src/mbgl/source/source_info.hpp +++ b/src/mbgl/source/source_info.hpp @@ -3,6 +3,7 @@ #include <mbgl/style/types.hpp> #include <mbgl/util/constants.hpp> +#include <mbgl/util/geo.hpp> #include <array> #include <vector> @@ -19,8 +20,9 @@ public: uint16_t minZoom = 0; uint16_t maxZoom = 22; std::string attribution; - std::array<double, 3> center = { { 0, 0, 0 } }; - std::array<double, 4> bounds = { { -util::LONGITUDE_MAX, -util::LATITUDE_MAX, util::LONGITUDE_MAX, util::LATITUDE_MAX } }; + LatLng center; + double zoom = 0; + LatLngBounds bounds = LatLngBounds::world(); }; } // namespace mbgl |