[ios] Fixed zoom level for map feedback tool
The map feedback tool uses mapbox.js, so its zoom levels are one off the zoom levels used by Mapbox GL.
This commit is contained in:
@@ -1548,7 +1548,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
|
||||
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]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user