Merge pull request #1498 from friedbunny/1497-feedback-url

Add long/lat/zoom to feedback URL
This commit is contained in:
Minh Nguyễn
2015-05-10 23:22:39 -07:00

View File

@@ -1281,8 +1281,10 @@ 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];
[[UIApplication sharedApplication] openURL:
[NSURL URLWithString:@"https://www.mapbox.com/map-feedback/"]];
[NSURL URLWithString:feedbackURL]];
}
}