summaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-12-24 20:50:05 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-04 11:40:31 -0800
commit8aad739ec2bfa420318973c1f68a311f57949fb9 (patch)
treea8119009c43da3823cfff01a322c5b867c974a7b /platform/osx
parente17e27fb0ee84454ee04622b28710d527c1e6a86 (diff)
downloadqtlocation-mapboxgl-8aad739ec2bfa420318973c1f68a311f57949fb9.tar.gz
[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.
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/app/MapDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/app/MapDocument.m b/platform/osx/app/MapDocument.m
index 3aa3f9f296..6881f6bd5b 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];
}