mbgl v1.6.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#import <mbgl/storage/resource.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
extern NSURL *resourceURLWithAccountType(const Resource& resource, NSInteger accountType);
|
||||
extern NSURL *resourceURL(const Resource& resource);
|
||||
extern BOOL isValidMapboxEndpoint(NSURL *url);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace mbgl {
|
||||
// By default, resources are NOT offline
|
||||
{
|
||||
bool skuTokenQueryItemFound;
|
||||
NSURL *url = resourceURLWithAccountType(resource, 0);
|
||||
NSURL *url = resourceURL(resource);
|
||||
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
|
||||
for (NSURLQueryItem *item in components.queryItems) {
|
||||
XCTAssertFalse([item.name isEqualToString:@"offline"]);
|
||||
@@ -52,18 +52,19 @@ namespace mbgl {
|
||||
}
|
||||
}
|
||||
|
||||
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
|
||||
// https://github.com/mapbox/mapbox-gl-native-ios/pull/296
|
||||
//#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
|
||||
XCTAssertTrue(skuTokenQueryItemFound, "Default resource URL should have SKU token query item");
|
||||
#else
|
||||
XCTAssertFalse(skuTokenQueryItemFound, "Non-iOS platforms should not have a SKU token query item");
|
||||
#endif
|
||||
//#else
|
||||
// XCTAssertFalse(skuTokenQueryItemFound, "Non-iOS platforms should not have a SKU token query item");
|
||||
//#endif
|
||||
}
|
||||
|
||||
// Now check offline
|
||||
resource.setUsage(Resource::Usage::Offline);
|
||||
|
||||
{
|
||||
NSURL *url = resourceURLWithAccountType(resource, 0);
|
||||
NSURL *url = resourceURL(resource);
|
||||
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
|
||||
|
||||
// For offline, we expect a single offline query item
|
||||
|
||||
@@ -6,7 +6,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
|
||||
### Styles and rendering
|
||||
|
||||
* Added the `mgl_distanceFrom:` expression function for calculating the shortest distance between the evaluated feature and an `MGLPointAnnotation`, `MGLPointCollection`, `MGLPolyline`, or `MGLMultiPolyline` that you specify as part of an `NSExpression` format string. ([#295](https://github.com/mapbox/mapbox-gl-native-ios/pull/295))
|
||||
* Added the `mgl_distanceFrom:` expression function for calculating the shortest distance between the evaluated feature and an `MGLPointAnnotation`, `MGLPointCollection`, `MGLPolyline`, `MGLMultiPolyline`, `MGLPolygon`, or `MGLMultiPolygon` that you specify as part of an `NSExpression` format string. ([#295](https://github.com/mapbox/mapbox-gl-native-ios/pull/295))
|
||||
* Added the `MGLCircleStyleLayer.circleSortKey` property. ([mapbox/mapbox-gl-native#15875](https://github.com/mapbox/mapbox-gl-native/pull/15875))
|
||||
* Chinese, Japanese, and Korean characters are now set in the font specified in style JSON or by the `MGLSymbolLayer.textFontNames` property. If the named font is not installed on the device or bundled with the application, the characters are set in a fallback font listed in the `MGLIdeographicFontFamilyName` key in the Info.plist file. ([#189](https://github.com/mapbox/mapbox-gl-native-ios/pull/189))
|
||||
* The `MGLIdeographicFontFamilyName` key in the Info.plist file can now specify the fallback fonts for CJK characters by their PostScript names or display names in addition to font family names. For example, you can specify `NotoSansCJKjp-Bold` or `Noto Sans CJK JP Bold`, which ensures that the characters are set in bold. You can alternatively specify these font names in the `MGLIdeographicFontFamilyName` key of `NSUserDefaults.standardUserDefaults`. ([#189](https://github.com/mapbox/mapbox-gl-native-ios/pull/189))
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
### Styles and rendering
|
||||
|
||||
* Added the `mgl_distanceFrom:` expression function for calculating the shortest distance between the evaluated feature and an `MGLPointAnnotation`, `MGLPointCollection`, `MGLPolyline`, or `MGLMultiPolyline` that you specify as part of an `NSExpression` format string. ([#295](https://github.com/mapbox/mapbox-gl-native-ios/pull/295))
|
||||
* Added the `mgl_distanceFrom:` expression function for calculating the shortest distance between the evaluated feature and an `MGLPointAnnotation`, `MGLPointCollection`, `MGLPolyline`, `MGLMultiPolyline`, `MGLPolygon`, or `MGLMultiPolygon` that you specify as part of an `NSExpression` format string. ([#295](https://github.com/mapbox/mapbox-gl-native-ios/pull/295))
|
||||
* Added the `MGLCircleStyleLayer.circleSortKey` property. ([mapbox/mapbox-gl-native#15875](https://github.com/mapbox/mapbox-gl-native/pull/15875))
|
||||
* Chinese, Japanese, and Korean characters are now set in the font specified in style JSON or by the `MGLSymbolLayer.textFontNames` property. If the named font is not installed on the device or bundled with the application, the characters are set in a fallback font listed in the `MGLIdeographicFontFamilyName` key in the Info.plist file. ([#189](https://github.com/mapbox/mapbox-gl-native-ios/pull/189))
|
||||
* The `MGLIdeographicFontFamilyName` key in the Info.plist file can now specify the fallback fonts for CJK characters by their PostScript names or display names in addition to font family names. For example, you can specify `NotoSansCJKjp-Bold` or `Noto Sans CJK JP Bold`, which ensures that the characters are set in bold. You can alternatively specify these font names in the `MGLIdeographicFontFamilyName` key of `NSUserDefaults.standardUserDefaults`. ([#189](https://github.com/mapbox/mapbox-gl-native-ios/pull/189))
|
||||
|
||||
2
vendor/mapbox-gl-native
vendored
2
vendor/mapbox-gl-native
vendored
Submodule vendor/mapbox-gl-native updated: de12a0647d...d60fd302b1
Reference in New Issue
Block a user