diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-02-22 09:39:58 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-02-22 09:44:43 -0800 |
commit | d836638407c7eae66fdf4b27f596391c591baeab (patch) | |
tree | 4f46192d856dffa2d8a9addad7f4bed620e44925 | |
parent | 565f4eff6370a88df84a3b4b3906412616355dc0 (diff) | |
download | qtlocation-mapboxgl-d836638407c7eae66fdf4b27f596391c591baeab.tar.gz |
[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.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d403d5ad3..de84cdbd80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ Known issues: ## iOS master - Polygons and polylines now default to using the map view's tint color. ([#4028](https://github.com/mapbox/mapbox-gl-native/pull/4028)) +- The Improve This Map tool now uses the same zoom level that is currently being shown in the map view. ([#4068](https://github.com/mapbox/mapbox-gl-native/pull/4068)) ## iOS 3.1.0 diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 1d5eb2ea77..4f732fb627 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -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]]; } |