[build] move default_styles to platform/default

This commit is contained in:
Konstantin Käfer
2016-11-22 12:18:27 +01:00
parent a71868fc8d
commit 9353fcbf4c
10 changed files with 27 additions and 6 deletions

View File

@@ -61,7 +61,11 @@ static_assert(mbgl::util::default_styles::currentVersion == MGLStyleDefaultVersi
} \
\
+ (NSURL *)name##StyleURL##WithVersion:(NSInteger)version { \
return [NSURL URLWithString:[@"mapbox://styles/mapbox/" #fileName "-v" stringByAppendingFormat:@"%li", (long)version]]; \
if (mbgl::util::default_styles::currentVersion == version) { \
return [NSURL URLWithString:@(mbgl::util::default_styles::name.url)]; \
} else { \
return [NSURL URLWithString:[@"mapbox://styles/mapbox/" #fileName "-v" stringByAppendingFormat:@"%li", (long)version]]; \
} \
}
MGL_DEFINE_STYLE(streets, streets)