Update styles
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
NSURL* url = [[NSURL alloc] initWithString:@"asset://styles/mapbox-streets-v7.json"];
|
||||
NSURL* url = [[NSURL alloc] initWithString:@"asset://styles/streets-v8.json"];
|
||||
self.mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds styleURL:url];
|
||||
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
self.mapView.delegate = self;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
NSURL* url = [[NSURL alloc] initWithString:@"asset://styles/mapbox-streets-v7.json"];
|
||||
NSURL* url = [[NSURL alloc] initWithString:@"asset://styles/streets-v8.json"];
|
||||
self.mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds accessToken:nil styleURL:url];
|
||||
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
self.mapView.delegate = self;
|
||||
|
||||
@@ -4,11 +4,11 @@ namespace mbgl {
|
||||
namespace util {
|
||||
|
||||
const std::vector<std::pair<std::string, std::string>> defaultStyles = {
|
||||
{ "asset://styles/mapbox-streets-v7.json", "Mapbox Streets" },
|
||||
{ "asset://styles/emerald-v7.json", "Emerald" },
|
||||
{ "asset://styles/light-v7.json", "Light" },
|
||||
{ "asset://styles/dark-v7.json", "Dark" },
|
||||
{ "asset://styles/satellite-v7.json", "Satellite" }
|
||||
{ "asset://styles/streets-v8.json", "Mapbox Streets" },
|
||||
{ "asset://styles/emerald-v8.json", "Emerald" },
|
||||
{ "asset://styles/light-v8.json", "Light" },
|
||||
{ "asset://styles/dark-v8.json", "Dark" },
|
||||
{ "asset://styles/satellite-v8.json", "Satellite" }
|
||||
};
|
||||
|
||||
} // end namespace util
|
||||
|
||||
@@ -102,7 +102,7 @@ cp -pv LICENSE.md "${OUTPUT}/static"
|
||||
mkdir -p "${OUTPUT}/static/${NAME}.bundle"
|
||||
cp -pv platform/ios/resources/* "${OUTPUT}/static/${NAME}.bundle"
|
||||
mkdir -p "${OUTPUT}/static/${NAME}.bundle/styles"
|
||||
cp -pv styles/styles/{dark,emerald,light,mapbox-streets,satellite}-v7.json "${OUTPUT}/static/${NAME}.bundle/styles"
|
||||
cp -pv styles/styles/{dark,emerald,light,streets,satellite}-v8.json "${OUTPUT}/static/${NAME}.bundle/styles"
|
||||
|
||||
step "Creating API Docs..."
|
||||
if [ -z `which appledoc` ]; then
|
||||
|
||||
2
styles
2
styles
Submodule styles updated: 44bdcec816...bdac555dcb
Reference in New Issue
Block a user