Authored by Justin R. Miller

fixes #458: fix scroll/overlay view constraints

@@ -1345,6 +1345,7 @@ @@ -1345,6 +1345,7 @@
1345 _mapScrollView.maximumZoomScale = exp2f([self maxZoom]); 1345 _mapScrollView.maximumZoomScale = exp2f([self maxZoom]);
1346 _mapScrollView.contentOffset = CGPointMake(0.0, 0.0); 1346 _mapScrollView.contentOffset = CGPointMake(0.0, 0.0);
1347 _mapScrollView.clipsToBounds = NO; 1347 _mapScrollView.clipsToBounds = NO;
  1348 + _mapScrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
1348 1349
1349 _tiledLayersSuperview = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, contentSize.width, contentSize.height)]; 1350 _tiledLayersSuperview = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, contentSize.width, contentSize.height)];
1350 _tiledLayersSuperview.userInteractionEnabled = NO; 1351 _tiledLayersSuperview.userInteractionEnabled = NO;
@@ -1378,6 +1379,7 @@ @@ -1378,6 +1379,7 @@
1378 1379
1379 _overlayView = [[RMMapOverlayView alloc] initWithFrame:[self bounds]]; 1380 _overlayView = [[RMMapOverlayView alloc] initWithFrame:[self bounds]];
1380 _overlayView.userInteractionEnabled = NO; 1381 _overlayView.userInteractionEnabled = NO;
  1382 + _overlayView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
1381 1383
1382 [self insertSubview:_overlayView aboveSubview:_mapScrollView]; 1384 [self insertSubview:_overlayView aboveSubview:_mapScrollView];
1383 1385