From e08e1bfc57a362f72c3220b5c26847e4856fda35 Mon Sep 17 00:00:00 2001 From: Jordan Kiley Date: Thu, 21 Mar 2019 16:32:51 -0700 Subject: [ios] Podspecs for v4.10.0 beta.1 (#14196) --- platform/ios/CHANGELOG.md | 20 +++++++++++----- .../ios/Mapbox-iOS-SDK-snapshot-dynamic.podspec | 2 +- platform/ios/Mapbox-iOS-SDK-stripped.podspec | 2 +- platform/ios/Mapbox-iOS-SDK.podspec | 2 +- platform/ios/src/MGLMapView.h | 27 +++++++++++----------- platform/ios/src/MGLMapView.mm | 6 +++-- 6 files changed, 35 insertions(+), 24 deletions(-) diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index b0a1f9e215..325cfe47e2 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -4,17 +4,25 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT ## 4.10.0 +### Styles and rendering + * Client-side text rendering of CJK ideographs is now enabled by default. ([#13988](https://github.com/mapbox/mapbox-gl-native/pull/13988)) -* Added an MGLMapView.prefetchesTiles property that you can disable if you don’t want to prefetch simplified tiles as a performance optimization. ([#14031](https://github.com/mapbox/mapbox-gl-native/pull/14031)) * Fixed an issue that caused `MGL_FUNCTION` to ignore multiple formatting parameters when passed a `format` function as parameter. ([#14064](https://github.com/mapbox/mapbox-gl-native/pull/14064)) -* Added a Galician localization. ([#14095](https://github.com/mapbox/mapbox-gl-native/pull/14095)) -* Added `mgl_attributed:` expression operator, which concatenate `MGLAttributedExpression` objects for specifying rich text in the `MGLSymbolStyleLayer.text` property. ([#14094](https://github.com/mapbox/mapbox-gl-native/pull/14094)) -* Fixed a bug that caused offline packs created prior to v4.0.0 (introduced in [#11055](https://github.com/mapbox/mapbox-gl-native/pull/11055)) to be marked as `MGLOfflinePackStateInactive`. ([#14188](https://github.com/mapbox/mapbox-gl-native/pull/14188)) +* Added `mgl_attributed:` expression operator, which concatenates `MGLAttributedExpression` objects for specifying rich text in the `MGLSymbolStyleLayer.text` property. ([#14094](https://github.com/mapbox/mapbox-gl-native/pull/14094)) * Fixed an issue that caused conditional expressions to crash when passed nested conditional expressions as parameters. ([#14181](https://github.com/mapbox/mapbox-gl-native/pull/14181)) -### User interaction +### Packaging + +* Added a Galician localization. ([#14095](https://github.com/mapbox/mapbox-gl-native/pull/14095)) + +### Offline maps + +* Fixed a bug that caused offline packs created prior to v4.0.0 to be marked as `MGLOfflinePackStateInactive`. ([#14188](https://github.com/mapbox/mapbox-gl-native/pull/14188)) + +### Other changes -* Added `MGLOrnamentPosition` enum and margins methods to customize MGLMapView's scale bar, compass, logo and attribution position. ([#13911](https://github.com/mapbox/mapbox-gl-native/pull/13911)) +* Added `MGLOrnamentPosition` enum and margin properties to customize scale bar, compass, logo, and attribution position within the map view. ([#13911](https://github.com/mapbox/mapbox-gl-native/pull/13911)) +* Added an `MGLMapView.prefetchesTiles` property to configure lower-resolution tile prefetching behavior. ([#14031](https://github.com/mapbox/mapbox-gl-native/pull/14031)) ## 4.9.0 - February 27, 2019 diff --git a/platform/ios/Mapbox-iOS-SDK-snapshot-dynamic.podspec b/platform/ios/Mapbox-iOS-SDK-snapshot-dynamic.podspec index bff5531290..3a3a2a2fab 100644 --- a/platform/ios/Mapbox-iOS-SDK-snapshot-dynamic.podspec +++ b/platform/ios/Mapbox-iOS-SDK-snapshot-dynamic.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |m| - version = '4.10.0-alpha.2' + version = '4.10.0-beta.1' m.name = 'Mapbox-iOS-SDK-snapshot-dynamic' m.version = "#{version}-snapshot" diff --git a/platform/ios/Mapbox-iOS-SDK-stripped.podspec b/platform/ios/Mapbox-iOS-SDK-stripped.podspec index 9a32524ef0..6976d05d3a 100644 --- a/platform/ios/Mapbox-iOS-SDK-stripped.podspec +++ b/platform/ios/Mapbox-iOS-SDK-stripped.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |m| - version = '4.10.0-alpha.2' + version = '4.10.0-beta.1' m.name = 'Mapbox-iOS-SDK-stripped' m.version = "#{version}-stripped" diff --git a/platform/ios/Mapbox-iOS-SDK.podspec b/platform/ios/Mapbox-iOS-SDK.podspec index 1cbd82c5e4..5431a37b8c 100644 --- a/platform/ios/Mapbox-iOS-SDK.podspec +++ b/platform/ios/Mapbox-iOS-SDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |m| - version = '4.10.0-alpha.2' + version = '4.10.0-beta.1' m.name = 'Mapbox-iOS-SDK' m.version = version diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 1ef64a587b..589b7b547b 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -414,12 +414,12 @@ MGL_EXPORT IB_DESIGNABLE /** A Boolean value indicating whether the map should prefetch tiles. - When this property is set to YES, the map view prefetches loads tiles designed for a - low zoom level and displays them until receiving more detailed tiles for the current - zoom level. The prefetched tiles typically contain simplified versions of each shape, - improving the map view’s perceived performance. + When this property is set to `YES`, the map view prefetches tiles designed for + a low zoom level and displays them until receiving more detailed tiles for the + current zoom level. The prefetched tiles typically contain simplified versions + of each shape, improving the map view’s perceived performance. - The default value of this property is YES. + The default value of this property is `YES`. */ @property (nonatomic, assign) BOOL prefetchesTiles; @@ -434,17 +434,18 @@ MGL_EXPORT IB_DESIGNABLE #pragma mark Displaying the User’s Location /** - The object that this map view uses to start and stop the delivery of location-related - updates. + The object that this map view uses to start and stop the delivery of + location-related updates. - To receive the current user location, implement the `-[MGLMapViewDelegate mapView:didUpdateUserLocation:]` - and `-[MGLMapViewDelegate mapView:didFailToLocateUserWithError:]` methods. + To receive the current user location, implement the + `-[MGLMapViewDelegate mapView:didUpdateUserLocation:]` and + `-[MGLMapViewDelegate mapView:didFailToLocateUserWithError:]` methods. - If setting this property to `nil` or if no custom manager is provided this property - is set to the default location manager. + If setting this property to `nil` or if no custom manager is provided this + property is set to the default location manager. - `MGLMapView` uses a default location manager. If you want to substitute your own - location manager, you should do so by setting this property before setting + `MGLMapView` uses a default location manager. If you want to substitute your + own location manager, you should do so by setting this property before setting `showsUserLocation` to `YES`. To restore the default location manager, set this property to `nil`. */ diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 692da30f04..bf2421521f 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -2560,11 +2560,13 @@ public: } } -- (void)setPrefetchesTiles:(BOOL)prefetchesTiles{ +- (void)setPrefetchesTiles:(BOOL)prefetchesTiles +{ _mbglMap->setPrefetchZoomDelta(prefetchesTiles ? mbgl::util::DEFAULT_PREFETCH_ZOOM_DELTA : 0); } -- (BOOL)prefetchesTiles{ +- (BOOL)prefetchesTiles +{ return _mbglMap->getPrefetchZoomDelta() > 0 ? YES : NO; } -- cgit v1.2.1