diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-12-24 20:50:05 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-01-04 11:40:31 -0800 |
commit | 8aad739ec2bfa420318973c1f68a311f57949fb9 (patch) | |
tree | a8119009c43da3823cfff01a322c5b867c974a7b /platform/osx | |
parent | e17e27fb0ee84454ee04622b28710d527c1e6a86 (diff) | |
download | qtlocation-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.m | 2 |
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]; } |