From 8aad739ec2bfa420318973c1f68a311f57949fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Thu, 24 Dec 2015 20:50:05 -0800 Subject: [PATCH] [osx] Fixed map feedback zoom level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The map feedback tool still uses mapbox.js, so its zoom levels are one off from Mapbox GL’s. --- platform/osx/app/MapDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/app/MapDocument.m b/platform/osx/app/MapDocument.m index 3aa3f9f29..6881f6bd5 100644 --- a/platform/osx/app/MapDocument.m +++ b/platform/osx/app/MapDocument.m @@ -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]; }