[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.
This commit is contained in:
Minh Nguyễn
2016-02-22 09:39:58 -08:00
parent 565f4eff63
commit d836638407
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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]];
}