Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1322 from mapbox/1ec5-orientation-1313
Browse files Browse the repository at this point in the history
Constrain user dot to superview margins
  • Loading branch information
1ec5 committed Apr 22, 2015
2 parents 2f67f60 + 87409b1 commit 1008787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/ios/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,8 @@ - (void)setShowsUserLocation:(BOOL)showsUserLocation
}

self.userLocationAnnotationView = [[MGLUserLocationAnnotationView alloc] initInMapView:self];
self.userLocationAnnotationView.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |
UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin);

self.locationManager = [CLLocationManager new];

Expand Down

0 comments on commit 1008787

Please sign in to comment.