[osx] Fixed map feedback zoom level

The map feedback tool still uses mapbox.js, so its zoom levels are one off from Mapbox GL’s.
This commit is contained in:
Minh Nguyễn
2015-12-24 20:50:05 -08:00
committed by Minh Nguyễn
parent e17e27fb0e
commit 8aad739ec2

View File

@@ -324,7 +324,7 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
- (IBAction)giveFeedback:(id)sender {
CLLocationCoordinate2D centerCoordinate = self.mapView.centerCoordinate;
NSURL *feedbackURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.mapbox.com/map-feedback/#/%.5f/%.5f/%.0f",
centerCoordinate.longitude, centerCoordinate.latitude, round(self.mapView.zoomLevel)]];
centerCoordinate.longitude, centerCoordinate.latitude, round(self.mapView.zoomLevel + 1)]];
[[NSWorkspace sharedWorkspace] openURL:feedbackURL];
}