Get mapbox-gl-styles via submodule (fixes #511)
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -5,3 +5,7 @@
|
||||
[submodule "test/suite"]
|
||||
path = test/suite
|
||||
url = https://github.com/mapbox/mapbox-gl-test-suite.git
|
||||
|
||||
[submodule "styles"]
|
||||
path = styles
|
||||
url = https://github.com/mapbox/mapbox-gl-styles.git
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
'hard_dependency': 1,
|
||||
'dependencies': [ 'touch_styles' ], # required for xcode http://openradar.appspot.com/7232149
|
||||
'direct_dependent_settings': {
|
||||
'mac_bundle_resources': [ '../styles' ],
|
||||
'mac_bundle_resources': [ '../styles/styles' ],
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
// Load style
|
||||
const std::string style = std::string("file://") + uv::cwd() + std::string("/styles/bright/style.json");
|
||||
const std::string style = std::string("file://") + uv::cwd() + std::string("/styles/bright-v5.json");
|
||||
map.setStyleURL(style);
|
||||
|
||||
int ret = view->run();
|
||||
|
||||
@@ -100,7 +100,7 @@ int main() {
|
||||
if (accessToken) map.setAccessToken([accessToken cStringUsingEncoding:[NSString defaultCStringEncoding]]);
|
||||
|
||||
// Load style
|
||||
const std::string path([[[NSBundle mainBundle] pathForResource:@"style" ofType:@"json" inDirectory:@"styles/bright"] UTF8String]);
|
||||
const std::string path([[[NSBundle mainBundle] pathForResource:@"bright-v5" ofType:@"json" inDirectory:@"styles/"] UTF8String]);
|
||||
|
||||
map.setStyleURL(std::string("file://") + path);
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
mapbox_time "checkout_styles" \
|
||||
git submodule update --init styles
|
||||
|
||||
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
|
||||
#
|
||||
# build & test Linux
|
||||
|
||||
1
styles
Submodule
1
styles
Submodule
Submodule styles added at bc7b7c38ef
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 266 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user