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

Commit

Permalink
[ios] Fixed zoom level for map feedback tool
Browse files Browse the repository at this point in the history
The map feedback tool uses mapbox.js, so its zoom levels are one off the zoom levels used by Mapbox GL.
  • Loading branch information
1ec5 committed Feb 22, 2016
1 parent 565f4ef commit d836638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Known issues:
## iOS master

- Polygons and polylines now default to using the map view's tint color. ([#4028](https://github.com/mapbox/mapbox-gl-native/pull/4028))
- The Improve This Map tool now uses the same zoom level that is currently being shown in the map view. ([#4068](https://github.com/mapbox/mapbox-gl-native/pull/4068))

## iOS 3.1.0

Expand Down
2 changes: 1 addition & 1 deletion platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSIn
else if (buttonIndex == actionSheet.firstOtherButtonIndex + 2)
{
NSString *feedbackURL = [NSString stringWithFormat:@"https://www.mapbox.com/map-feedback/#/%.5f/%.5f/%i",
self.longitude, self.latitude, (int)round(self.zoomLevel)];
self.longitude, self.latitude, (int)round(self.zoomLevel + 1)];
[[UIApplication sharedApplication] openURL:
[NSURL URLWithString:feedbackURL]];
}
Expand Down

0 comments on commit d836638

Please sign in to comment.