Get mapbox-gl-styles via submodule (fixes #511)

This commit is contained in:
John Firebaugh
2014-10-31 14:46:51 -04:00
parent 16bd75c6cc
commit d675828fe1
12 changed files with 11 additions and 9197 deletions

4
.gitmodules vendored
View File

@@ -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

View File

@@ -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' ],
}
},
{

View File

@@ -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();

View File

@@ -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);

View File

@@ -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

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