summaryrefslogtreecommitdiff
path: root/src/mbgl/source/source_info.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/source/source_info.hpp')
-rw-r--r--src/mbgl/source/source_info.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mbgl/source/source_info.hpp b/src/mbgl/source/source_info.hpp
new file mode 100644
index 0000000000..2fb5c2466d
--- /dev/null
+++ b/src/mbgl/source/source_info.hpp
@@ -0,0 +1,28 @@
+#ifndef MBGL_MAP_SOURCE_INFO
+#define MBGL_MAP_SOURCE_INFO
+
+#include <mbgl/style/types.hpp>
+#include <mbgl/util/constants.hpp>
+
+#include <array>
+#include <vector>
+#include <string>
+#include <cstdint>
+
+namespace mbgl {
+
+class TileID;
+
+class SourceInfo {
+public:
+ std::vector<std::string> tiles;
+ uint16_t minZoom = 0;
+ uint16_t maxZoom = 22;
+ std::string attribution;
+ std::array<float, 3> center = { { 0, 0, 0 } };
+ std::array<float, 4> bounds = { { -180, -90, 180, 90 } };
+};
+
+} // namespace mbgl
+
+#endif // MBGL_MAP_SOURCE_INFO