From 965bc41d438e99fc85b036b5786b471898d33e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sun, 10 May 2015 23:34:47 -0700 Subject: [PATCH] Round zoom level for Map Feedback tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Map Feedback tool is still using mapbox.js, so it doesn’t support fractional zoom levels yet. --- platform/ios/MGLMapView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 5c7e6ad61..b6ae9eb99 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]]; }