summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-05-10 23:22:39 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-05-10 23:22:39 -0700
commit005af44efb9536bb3c5645858f1088bde21092d1 (patch)
tree75860f09fd3fba6fb19354f867fb688ccd141dbd
parent4de7f89f47ba286b00cc3510f07b1cceb3a3c57e (diff)
parentfbafa153950cd853517418ea13a411ffc918d3a4 (diff)
downloadqtlocation-mapboxgl-005af44efb9536bb3c5645858f1088bde21092d1.tar.gz
Merge pull request #1498 from friedbunny/1497-feedback-url
Add long/lat/zoom to feedback URL
-rw-r--r--platform/ios/MGLMapView.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index 49ed423468..c1ff904cb7 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -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]];
}
}