summaryrefslogtreecommitdiff
path: root/platform/default/mbgl/util/default_styles.hpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-04-25 20:52:47 -0400
committerMinh Nguyễn <mxn@1ec5.org>2017-05-11 18:57:39 -0700
commit9e384b78fbcf46d66d390122eefdf273f91b314e (patch)
tree0b33551af7c24f5adfabdade12ca3eb1566cece3 /platform/default/mbgl/util/default_styles.hpp
parentca97dd8cf4c70a5ed380c99700749fd3239715f0 (diff)
downloadqtlocation-mapboxgl-9e384b78fbcf46d66d390122eefdf273f91b314e.tar.gz
[ios, macos] Undeprecated unversioned style URL factory methods
Undeprecated the unversioned style URL factory methods in MGLStyle for consistency with the Android and Qt SDKs. Added warnings about using them with the runtime styling API. Refactored mbgl::util::default_styles to track different versions for different styles.
Diffstat (limited to 'platform/default/mbgl/util/default_styles.hpp')
-rw-r--r--platform/default/mbgl/util/default_styles.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/default/mbgl/util/default_styles.hpp b/platform/default/mbgl/util/default_styles.hpp
index 32944394aa..5e0d083d82 100644
--- a/platform/default/mbgl/util/default_styles.hpp
+++ b/platform/default/mbgl/util/default_styles.hpp
@@ -10,6 +10,7 @@ namespace default_styles {
struct DefaultStyle {
const char* url;
const char* name;
+ const unsigned currentVersion;
};
extern const DefaultStyle streets;
@@ -24,8 +25,6 @@ const DefaultStyle orderedStyles[] = {
};
const size_t numOrderedStyles = sizeof(orderedStyles) / sizeof(DefaultStyle);
-static const unsigned currentVersion = 10;
-
} // end namespace default_styles
} // end namespace util
} // end namespace mbgl