Add long/lat/zoom to feedback URL

This commit is contained in:
Jason Wray
2015-05-10 23:14:16 -07:00
parent 4de7f89f47
commit fbafa15395

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