[ios] Move image resources to an asset catalog & switch to PDFs
@@ -200,6 +200,8 @@
|
||||
7E016D861D9E890300A29A21 /* MGLPolygon+MGLAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E016D831D9E890300A29A21 /* MGLPolygon+MGLAdditions.m */; };
|
||||
7E016D871D9E890300A29A21 /* MGLPolygon+MGLAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E016D831D9E890300A29A21 /* MGLPolygon+MGLAdditions.m */; };
|
||||
920A3E5D1E6F995200C16EFC /* MGLSourceQueryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 920A3E5C1E6F995200C16EFC /* MGLSourceQueryTests.m */; };
|
||||
960D0C361ECF5AAF008E151F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 960D0C351ECF5AAF008E151F /* Images.xcassets */; };
|
||||
960D0C371ECF5AAF008E151F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 960D0C351ECF5AAF008E151F /* Images.xcassets */; };
|
||||
9620BB381E69FE1700705A1D /* MGLSDKUpdateChecker.h in Headers */ = {isa = PBXBuildFile; fileRef = 9620BB361E69FE1700705A1D /* MGLSDKUpdateChecker.h */; };
|
||||
9620BB391E69FE1700705A1D /* MGLSDKUpdateChecker.h in Headers */ = {isa = PBXBuildFile; fileRef = 9620BB361E69FE1700705A1D /* MGLSDKUpdateChecker.h */; };
|
||||
9620BB3A1E69FE1700705A1D /* MGLSDKUpdateChecker.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9620BB371E69FE1700705A1D /* MGLSDKUpdateChecker.mm */; };
|
||||
@@ -333,15 +335,6 @@
|
||||
DA88485C1CBAFB9800AB86E3 /* MGLFaux3DUserLocationAnnotationView.h in Headers */ = {isa = PBXBuildFile; fileRef = DA88484D1CBAFB9800AB86E3 /* MGLFaux3DUserLocationAnnotationView.h */; };
|
||||
DA88485D1CBAFB9800AB86E3 /* MGLFaux3DUserLocationAnnotationView.m in Sources */ = {isa = PBXBuildFile; fileRef = DA88484E1CBAFB9800AB86E3 /* MGLFaux3DUserLocationAnnotationView.m */; };
|
||||
DA8848601CBAFC2E00AB86E3 /* Mapbox.h in Headers */ = {isa = PBXBuildFile; fileRef = DA88485E1CBAFC2E00AB86E3 /* Mapbox.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
DA88486D1CBAFCC100AB86E3 /* Compass.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848631CBAFCC100AB86E3 /* Compass.png */; };
|
||||
DA88486E1CBAFCC100AB86E3 /* Compass@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848641CBAFCC100AB86E3 /* Compass@2x.png */; };
|
||||
DA88486F1CBAFCC100AB86E3 /* Compass@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848651CBAFCC100AB86E3 /* Compass@3x.png */; };
|
||||
DA8848701CBAFCC100AB86E3 /* default_marker.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848661CBAFCC100AB86E3 /* default_marker.png */; };
|
||||
DA8848711CBAFCC100AB86E3 /* default_marker@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848671CBAFCC100AB86E3 /* default_marker@2x.png */; };
|
||||
DA8848721CBAFCC100AB86E3 /* default_marker@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848681CBAFCC100AB86E3 /* default_marker@3x.png */; };
|
||||
DA8848731CBAFCC100AB86E3 /* mapbox.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848691CBAFCC100AB86E3 /* mapbox.png */; };
|
||||
DA8848741CBAFCC100AB86E3 /* mapbox@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA88486A1CBAFCC100AB86E3 /* mapbox@2x.png */; };
|
||||
DA8848751CBAFCC100AB86E3 /* mapbox@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA88486B1CBAFCC100AB86E3 /* mapbox@3x.png */; };
|
||||
DA8848841CBB033F00AB86E3 /* FABAttributes.h in Headers */ = {isa = PBXBuildFile; fileRef = DA8848801CBB033F00AB86E3 /* FABAttributes.h */; };
|
||||
DA8848851CBB033F00AB86E3 /* FABKitProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = DA8848811CBB033F00AB86E3 /* FABKitProtocol.h */; };
|
||||
DA8848861CBB033F00AB86E3 /* Fabric+FABKits.h in Headers */ = {isa = PBXBuildFile; fileRef = DA8848821CBB033F00AB86E3 /* Fabric+FABKits.h */; };
|
||||
@@ -355,15 +348,6 @@
|
||||
DA8933DB1CCD31D400E68420 /* Foundation.strings in Resources */ = {isa = PBXBuildFile; fileRef = DA8933BA1CCD2CA100E68420 /* Foundation.strings */; };
|
||||
DA8933DC1CCD31D400E68420 /* Foundation.stringsdict in Resources */ = {isa = PBXBuildFile; fileRef = DA8933BD1CCD2CAD00E68420 /* Foundation.stringsdict */; };
|
||||
DA8933E01CCD31DF00E68420 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = DA89339F1CCC951200E68420 /* Localizable.strings */; };
|
||||
DA8933E11CCD31DF00E68420 /* Compass.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848631CBAFCC100AB86E3 /* Compass.png */; };
|
||||
DA8933E21CCD31DF00E68420 /* Compass@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848641CBAFCC100AB86E3 /* Compass@2x.png */; };
|
||||
DA8933E31CCD31DF00E68420 /* Compass@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848651CBAFCC100AB86E3 /* Compass@3x.png */; };
|
||||
DA8933E41CCD31DF00E68420 /* default_marker.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848661CBAFCC100AB86E3 /* default_marker.png */; };
|
||||
DA8933E51CCD31DF00E68420 /* default_marker@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848671CBAFCC100AB86E3 /* default_marker@2x.png */; };
|
||||
DA8933E61CCD31DF00E68420 /* default_marker@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848681CBAFCC100AB86E3 /* default_marker@3x.png */; };
|
||||
DA8933E71CCD31DF00E68420 /* mapbox.png in Resources */ = {isa = PBXBuildFile; fileRef = DA8848691CBAFCC100AB86E3 /* mapbox.png */; };
|
||||
DA8933E81CCD31DF00E68420 /* mapbox@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA88486A1CBAFCC100AB86E3 /* mapbox@2x.png */; };
|
||||
DA8933E91CCD31DF00E68420 /* mapbox@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DA88486B1CBAFCC100AB86E3 /* mapbox@3x.png */; };
|
||||
DA8933F01CCD387900E68420 /* strip-frameworks.sh in Resources */ = {isa = PBXBuildFile; fileRef = DA8933EF1CCD387900E68420 /* strip-frameworks.sh */; };
|
||||
DA8963371CC549A100684375 /* glyphs in Resources */ = {isa = PBXBuildFile; fileRef = DA8963331CC549A100684375 /* glyphs */; };
|
||||
DA8963381CC549A100684375 /* sprites in Resources */ = {isa = PBXBuildFile; fileRef = DA8963341CC549A100684375 /* sprites */; };
|
||||
@@ -679,6 +663,7 @@
|
||||
7E016D821D9E890300A29A21 /* MGLPolygon+MGLAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MGLPolygon+MGLAdditions.h"; sourceTree = "<group>"; };
|
||||
7E016D831D9E890300A29A21 /* MGLPolygon+MGLAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "MGLPolygon+MGLAdditions.m"; sourceTree = "<group>"; };
|
||||
920A3E5C1E6F995200C16EFC /* MGLSourceQueryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MGLSourceQueryTests.m; path = ../../darwin/test/MGLSourceQueryTests.m; sourceTree = "<group>"; };
|
||||
960D0C351ECF5AAF008E151F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
|
||||
9620BB361E69FE1700705A1D /* MGLSDKUpdateChecker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGLSDKUpdateChecker.h; sourceTree = "<group>"; };
|
||||
9620BB371E69FE1700705A1D /* MGLSDKUpdateChecker.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = MGLSDKUpdateChecker.mm; sourceTree = "<group>"; };
|
||||
9660916B1E5BBFD700A9A03B /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||
@@ -847,15 +832,6 @@
|
||||
DA88484D1CBAFB9800AB86E3 /* MGLFaux3DUserLocationAnnotationView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGLFaux3DUserLocationAnnotationView.h; sourceTree = "<group>"; };
|
||||
DA88484E1CBAFB9800AB86E3 /* MGLFaux3DUserLocationAnnotationView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MGLFaux3DUserLocationAnnotationView.m; sourceTree = "<group>"; };
|
||||
DA88485E1CBAFC2E00AB86E3 /* Mapbox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Mapbox.h; path = src/Mapbox.h; sourceTree = SOURCE_ROOT; };
|
||||
DA8848631CBAFCC100AB86E3 /* Compass.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Compass.png; sourceTree = "<group>"; };
|
||||
DA8848641CBAFCC100AB86E3 /* Compass@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Compass@2x.png"; sourceTree = "<group>"; };
|
||||
DA8848651CBAFCC100AB86E3 /* Compass@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Compass@3x.png"; sourceTree = "<group>"; };
|
||||
DA8848661CBAFCC100AB86E3 /* default_marker.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = default_marker.png; sourceTree = "<group>"; };
|
||||
DA8848671CBAFCC100AB86E3 /* default_marker@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "default_marker@2x.png"; sourceTree = "<group>"; };
|
||||
DA8848681CBAFCC100AB86E3 /* default_marker@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "default_marker@3x.png"; sourceTree = "<group>"; };
|
||||
DA8848691CBAFCC100AB86E3 /* mapbox.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mapbox.png; sourceTree = "<group>"; };
|
||||
DA88486A1CBAFCC100AB86E3 /* mapbox@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mapbox@2x.png"; sourceTree = "<group>"; };
|
||||
DA88486B1CBAFCC100AB86E3 /* mapbox@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mapbox@3x.png"; sourceTree = "<group>"; };
|
||||
DA8848801CBB033F00AB86E3 /* FABAttributes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FABAttributes.h; sourceTree = "<group>"; };
|
||||
DA8848811CBB033F00AB86E3 /* FABKitProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FABKitProtocol.h; sourceTree = "<group>"; };
|
||||
DA8848821CBB033F00AB86E3 /* Fabric+FABKits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Fabric+FABKits.h"; sourceTree = "<group>"; };
|
||||
@@ -1363,17 +1339,9 @@
|
||||
DA8848621CBAFCC100AB86E3 /* Kit Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
960D0C351ECF5AAF008E151F /* Images.xcassets */,
|
||||
DA89339F1CCC951200E68420 /* Localizable.strings */,
|
||||
DAC49C5F1CD02BC9009E1AA3 /* Localizable.stringsdict */,
|
||||
DA8848631CBAFCC100AB86E3 /* Compass.png */,
|
||||
DA8848641CBAFCC100AB86E3 /* Compass@2x.png */,
|
||||
DA8848651CBAFCC100AB86E3 /* Compass@3x.png */,
|
||||
DA8848661CBAFCC100AB86E3 /* default_marker.png */,
|
||||
DA8848671CBAFCC100AB86E3 /* default_marker@2x.png */,
|
||||
DA8848681CBAFCC100AB86E3 /* default_marker@3x.png */,
|
||||
DA8848691CBAFCC100AB86E3 /* mapbox.png */,
|
||||
DA88486A1CBAFCC100AB86E3 /* mapbox@2x.png */,
|
||||
DA88486B1CBAFCC100AB86E3 /* mapbox@3x.png */,
|
||||
DA8933EF1CCD387900E68420 /* strip-frameworks.sh */,
|
||||
40599F001DEE1B2400182B5D /* api_mapbox_staging.der */,
|
||||
40599F011DEE1B2400182B5D /* api_mapbox_com-digicert.der */,
|
||||
@@ -2092,18 +2060,10 @@
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
DA8848731CBAFCC100AB86E3 /* mapbox.png in Resources */,
|
||||
DA8933BC1CCD2CA100E68420 /* Foundation.strings in Resources */,
|
||||
DA8848741CBAFCC100AB86E3 /* mapbox@2x.png in Resources */,
|
||||
DA8933A31CCC95B000E68420 /* Localizable.strings in Resources */,
|
||||
DA88486D1CBAFCC100AB86E3 /* Compass.png in Resources */,
|
||||
DA8848721CBAFCC100AB86E3 /* default_marker@3x.png in Resources */,
|
||||
DA88486F1CBAFCC100AB86E3 /* Compass@3x.png in Resources */,
|
||||
DA88486E1CBAFCC100AB86E3 /* Compass@2x.png in Resources */,
|
||||
DA8848701CBAFCC100AB86E3 /* default_marker.png in Resources */,
|
||||
DA8848711CBAFCC100AB86E3 /* default_marker@2x.png in Resources */,
|
||||
960D0C361ECF5AAF008E151F /* Images.xcassets in Resources */,
|
||||
DA8933F01CCD387900E68420 /* strip-frameworks.sh in Resources */,
|
||||
DA8848751CBAFCC100AB86E3 /* mapbox@3x.png in Resources */,
|
||||
DAC49C5C1CD02BC9009E1AA3 /* Localizable.stringsdict in Resources */,
|
||||
DA8933BF1CCD2CAD00E68420 /* Foundation.stringsdict in Resources */,
|
||||
408982E91DEE208200754016 /* api_mapbox_staging.der in Resources */,
|
||||
@@ -2117,16 +2077,8 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
DA8933E01CCD31DF00E68420 /* Localizable.strings in Resources */,
|
||||
DA8933E11CCD31DF00E68420 /* Compass.png in Resources */,
|
||||
DA8933E21CCD31DF00E68420 /* Compass@2x.png in Resources */,
|
||||
DA8933E31CCD31DF00E68420 /* Compass@3x.png in Resources */,
|
||||
DA8933E41CCD31DF00E68420 /* default_marker.png in Resources */,
|
||||
DA8933E51CCD31DF00E68420 /* default_marker@2x.png in Resources */,
|
||||
DA8933E61CCD31DF00E68420 /* default_marker@3x.png in Resources */,
|
||||
DA8933E71CCD31DF00E68420 /* mapbox.png in Resources */,
|
||||
DA8933E81CCD31DF00E68420 /* mapbox@2x.png in Resources */,
|
||||
DA8933E91CCD31DF00E68420 /* mapbox@3x.png in Resources */,
|
||||
DA8933DB1CCD31D400E68420 /* Foundation.strings in Resources */,
|
||||
960D0C371ECF5AAF008E151F /* Images.xcassets in Resources */,
|
||||
DA8933DC1CCD31D400E68420 /* Foundation.stringsdict in Resources */,
|
||||
DAC49C5D1CD02BC9009E1AA3 /* Localizable.stringsdict in Resources */,
|
||||
40599F0C1DEE1B7600182B5D /* api_mapbox_staging.der in Resources */,
|
||||
|
||||
BIN
platform/ios/originals/compass.sketch
Normal file
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
12
platform/ios/resources/Images.xcassets/Compass.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "compass.pdf"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
BIN
platform/ios/resources/Images.xcassets/Compass.imageset/compass.pdf
vendored
Normal file
6
platform/ios/resources/Images.xcassets/Contents.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
12
platform/ios/resources/Images.xcassets/default_marker.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "default_marker.pdf"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
BIN
platform/ios/resources/Images.xcassets/default_marker.imageset/default_marker.pdf
vendored
Normal file
12
platform/ios/resources/Images.xcassets/mapbox.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "mapbox.pdf"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
BIN
platform/ios/resources/Images.xcassets/mapbox.imageset/mapbox.pdf
vendored
Normal file
|
Before Width: | Height: | Size: 1010 B |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
@@ -467,7 +467,7 @@ public:
|
||||
|
||||
// setup logo bug
|
||||
//
|
||||
UIImage *logo = [MGLMapView resourceImageNamed:@"mapbox.png"];
|
||||
UIImage *logo = [MGLMapView resourceImageNamed:@"mapbox"];
|
||||
_logoView = [[UIImageView alloc] initWithImage:logo];
|
||||
_logoView.accessibilityTraits = UIAccessibilityTraitStaticText;
|
||||
_logoView.accessibilityLabel = NSLocalizedStringWithDefaultValue(@"LOGO_A11Y_LABEL", nil, nil, @"Mapbox", @"Accessibility label");
|
||||
@@ -616,11 +616,11 @@ public:
|
||||
|
||||
- (UIImage *)compassImage
|
||||
{
|
||||
UIImage *scaleImage = [MGLMapView resourceImageNamed:@"Compass.png"];
|
||||
UIImage *scaleImage = [MGLMapView resourceImageNamed:@"Compass"];
|
||||
UIGraphicsBeginImageContextWithOptions(scaleImage.size, NO, [UIScreen mainScreen].scale);
|
||||
[scaleImage drawInRect:{ CGPointZero, scaleImage.size }];
|
||||
|
||||
CGFloat northSize = 9;
|
||||
CGFloat northSize = 11;
|
||||
UIFont *northFont;
|
||||
if ([UIFont respondsToSelector:@selector(systemFontOfSize:weight:)])
|
||||
{
|
||||
@@ -635,7 +635,7 @@ public:
|
||||
NSForegroundColorAttributeName: [UIColor whiteColor],
|
||||
}];
|
||||
CGRect stringRect = CGRectMake((scaleImage.size.width - north.size.width) / 2,
|
||||
scaleImage.size.height * 0.45,
|
||||
scaleImage.size.height * 0.435,
|
||||
north.size.width, north.size.height);
|
||||
[north drawInRect:stringRect];
|
||||
|
||||
@@ -874,8 +874,8 @@ public:
|
||||
|
||||
// logo bug
|
||||
self.logoView.frame = {
|
||||
self.contentInset.left+5,
|
||||
CGRectGetHeight(self.bounds)-5-self.contentInset.bottom-CGRectGetHeight(self.logoView.bounds),
|
||||
self.contentInset.left+8,
|
||||
CGRectGetHeight(self.bounds)-8-self.contentInset.bottom-CGRectGetHeight(self.logoView.bounds),
|
||||
CGRectGetWidth(self.logoView.bounds),
|
||||
CGRectGetHeight(self.logoView.bounds)
|
||||
};
|
||||
@@ -5290,17 +5290,17 @@ public:
|
||||
|
||||
+ (UIImage *)resourceImageNamed:(NSString *)imageName
|
||||
{
|
||||
NSString *extension = imageName.pathExtension.length ? imageName.pathExtension : @"png";
|
||||
NSBundle *bundle = [NSBundle mgl_frameworkBundle];
|
||||
NSString *path = [bundle pathForResource:imageName.stringByDeletingPathExtension
|
||||
ofType:extension];
|
||||
if ( ! path)
|
||||
UIImage *image = [UIImage imageNamed:imageName
|
||||
inBundle:[NSBundle mgl_frameworkBundle]
|
||||
compatibleWithTraitCollection:nil];
|
||||
|
||||
if ( ! image)
|
||||
{
|
||||
[NSException raise:@"Resource not found" format:
|
||||
[NSException raise:@"MGLResourceNotFoundException" format:
|
||||
@"The resource named “%@” could not be found in the Mapbox framework bundle.", imageName];
|
||||
}
|
||||
|
||||
return [UIImage imageWithContentsOfFile:path];
|
||||
return image;
|
||||
}
|
||||
|
||||
- (BOOL)isFullyLoaded
|
||||
|
||||