Merge branch 'release-ios-v3.3.0'
Merge release branch after v3.3.2 and v3.3.3.
This commit is contained in:
@@ -14,6 +14,16 @@ Mapbox welcomes participation and contributions from everyone. Please read [CON
|
||||
* Fixed an issue where annotation views could be assigned to multipoint annotations. ([#5770](https://github.com/mapbox/mapbox-gl-native/pull/5770))
|
||||
* Fixed the static only framework build. ([#5782](https://github.com/mapbox/mapbox-gl-native/issues/5782))
|
||||
|
||||
## 3.3.3 - July 29, 2016
|
||||
|
||||
* Fixes an issue where the style zoom levels were not respected when deciding when to render a layer. ([#5811](https://github.com/mapbox/mapbox-gl-native/issues/5811))
|
||||
|
||||
## 3.3.2 - July 28, 2016
|
||||
|
||||
* Speculatively fixed a crash that occurred when initializing an MGLMapView on iOS 7.x. ([#5791](https://github.com/mapbox/mapbox-gl-native/pull/5791))
|
||||
* View-backed annotations no longer prevent the user from starting to pan the map. ([#5813](https://github.com/mapbox/mapbox-gl-native/pull/5813))
|
||||
* Fixed an issue that caused the user dot to be selected when tapping an annotation that lies within the user dot’s accuracy circle. ([#5816](https://github.com/mapbox/mapbox-gl-native/pull/5816))
|
||||
|
||||
## 3.3.1 - July 19, 2016
|
||||
|
||||
* Fixed a crash that occurred when a sprite URL lacks a file extension. See [this comment](https://github.com/mapbox/mapbox-gl-native/issues/5722#issuecomment-233701251) to determine who may be affected by this bug. ([#5723](https://github.com/mapbox/mapbox-gl-native/pull/5723))
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Pod::Spec.new do |m|
|
||||
|
||||
m.name = 'Mapbox-iOS-SDK'
|
||||
m.version = '3.3.1-symbols'
|
||||
m.version = '3.3.3-symbols'
|
||||
|
||||
m.summary = 'Open source vector map solution for iOS with full styling capabilities.'
|
||||
m.description = 'Open source, OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa Touch APIs.'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Pod::Spec.new do |m|
|
||||
|
||||
m.name = 'Mapbox-iOS-SDK'
|
||||
m.version = '3.3.1'
|
||||
m.version = '3.3.3'
|
||||
|
||||
m.summary = 'Open source vector map solution for iOS with full styling capabilities.'
|
||||
m.description = 'Open source, OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa Touch APIs.'
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
{
|
||||
BOOL isDragging = self.dragState == MGLAnnotationViewDragStateDragging;
|
||||
|
||||
if ([gestureRecognizer isKindOfClass:UIPanGestureRecognizer.class] && !(isDragging))
|
||||
if (gestureRecognizer == _panGestureRecognizer && !(isDragging))
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
@@ -586,9 +586,18 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
|
||||
UIGraphicsBeginImageContextWithOptions(scaleImage.size, NO, [UIScreen mainScreen].scale);
|
||||
[scaleImage drawInRect:{ CGPointZero, scaleImage.size }];
|
||||
|
||||
CGFloat weight = &UIFontWeightUltraLight ? UIFontWeightUltraLight : -0.8;
|
||||
CGFloat northSize = 9;
|
||||
UIFont *northFont;
|
||||
if ([UIFont respondsToSelector:@selector(systemFontOfSize:weight:)])
|
||||
{
|
||||
northFont = [UIFont systemFontOfSize:northSize weight:UIFontWeightUltraLight];
|
||||
}
|
||||
else
|
||||
{
|
||||
northFont = [UIFont systemFontOfSize:northSize];
|
||||
}
|
||||
NSAttributedString *north = [[NSAttributedString alloc] initWithString:NSLocalizedStringWithDefaultValue(@"COMPASS_NORTH", nil, nil, @"N", @"Compass abbreviation for north") attributes:@{
|
||||
NSFontAttributeName: [UIFont systemFontOfSize:9 weight:weight],
|
||||
NSFontAttributeName: northFont,
|
||||
NSForegroundColorAttributeName: [UIColor whiteColor],
|
||||
}];
|
||||
CGRect stringRect = CGRectMake((scaleImage.size.width - north.size.width) / 2,
|
||||
@@ -1385,8 +1394,8 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
|
||||
|
||||
CGPoint tapPoint = [singleTap locationInView:self];
|
||||
|
||||
if (self.userLocationVisible
|
||||
&& [self.userLocationAnnotationView.layer.presentationLayer hitTest:tapPoint])
|
||||
CALayer *hitLayer = self.userLocationVisible ? [self.userLocationAnnotationView.layer.presentationLayer hitTest:tapPoint] : nil;
|
||||
if (hitLayer && hitLayer != self.userLocationAnnotationView.haloLayer.presentationLayer)
|
||||
{
|
||||
if ( ! _userLocationAnnotationIsSelected)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user