From b8654b3b04599988f1f7a519853e98d4ca54cfd0 Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Mon, 16 Oct 2017 16:10:28 -0400 Subject: [core] Move SourceType to the 'style' namespace --- include/mbgl/storage/offline.hpp | 6 +++--- include/mbgl/style/types.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/mbgl/storage/offline.hpp b/include/mbgl/storage/offline.hpp index 117dd0591b..ef4a499e83 100644 --- a/include/mbgl/storage/offline.hpp +++ b/include/mbgl/storage/offline.hpp @@ -30,15 +30,15 @@ public: OfflineTilePyramidRegionDefinition(std::string, LatLngBounds, double, double, float); /* Private */ - std::vector tileCover(SourceType, uint16_t tileSize, const Range& zoomRange) const; - uint64_t tileCount(SourceType, uint16_t tileSize, const Range& zoomRange) const; + std::vector tileCover(style::SourceType, uint16_t tileSize, const Range& zoomRange) const; + uint64_t tileCount(style::SourceType, uint16_t tileSize, const Range& zoomRange) const; const std::string styleURL; const LatLngBounds bounds; const double minZoom; const double maxZoom; const float pixelRatio; private: - Range coveringZoomRange(SourceType, uint16_t tileSize, const Range& zoomRange) const; + Range coveringZoomRange(style::SourceType, uint16_t tileSize, const Range& zoomRange) const; }; /* diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp index ec7358de8c..2ed95f08b8 100644 --- a/include/mbgl/style/types.hpp +++ b/include/mbgl/style/types.hpp @@ -4,7 +4,9 @@ namespace mbgl { -// TODO: should be in public source.hpp header and style namespace +namespace style { + +// TODO: should be in public source.hpp header enum class SourceType : uint8_t { Vector, Raster, @@ -14,8 +16,6 @@ enum class SourceType : uint8_t { Image }; -namespace style { - enum class VisibilityType : bool { Visible, None, -- cgit v1.2.1