diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-05-10 23:34:47 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-05-10 23:34:47 -0700 |
commit | 965bc41d438e99fc85b036b5786b471898d33e1f (patch) | |
tree | 970fc16b83ffae8ba52755f7c79dcda166206f66 | |
parent | 7da7f65579fae412fea0fecd9afc3b56e4577ca6 (diff) | |
download | qtlocation-mapboxgl-965bc41d438e99fc85b036b5786b471898d33e1f.tar.gz |
Round zoom level for Map Feedback tool
The Map Feedback tool is still using mapbox.js, so it doesn’t support fractional zoom levels yet.
-rw-r--r-- | platform/ios/MGLMapView.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 5c7e6ad61e..b6ae9eb99b 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1288,8 +1288,8 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration) } else if (buttonIndex == actionSheet.firstOtherButtonIndex + 2) { - NSString *feedbackURL = [NSString stringWithFormat:@"https://www.mapbox.com/map-feedback/#/%.5f/%.5f/%.1f", - self.longitude, self.latitude, self.zoomLevel]; + NSString *feedbackURL = [NSString stringWithFormat:@"https://www.mapbox.com/map-feedback/#/%.5f/%.5f/%i", + self.longitude, self.latitude, (int)round(self.zoomLevel)]; [[UIApplication sharedApplication] openURL: [NSURL URLWithString:feedbackURL]]; } |