diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-04-25 20:52:47 -0400 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-05-11 18:57:39 -0700 |
commit | 9e384b78fbcf46d66d390122eefdf273f91b314e (patch) | |
tree | 0b33551af7c24f5adfabdade12ca3eb1566cece3 /platform/default/mbgl/util/default_styles.hpp | |
parent | ca97dd8cf4c70a5ed380c99700749fd3239715f0 (diff) | |
download | qtlocation-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.hpp | 3 |
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 |