diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-05-10 23:22:39 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-05-10 23:22:39 -0700 |
commit | 005af44efb9536bb3c5645858f1088bde21092d1 (patch) | |
tree | 75860f09fd3fba6fb19354f867fb688ccd141dbd | |
parent | 4de7f89f47ba286b00cc3510f07b1cceb3a3c57e (diff) | |
parent | fbafa153950cd853517418ea13a411ffc918d3a4 (diff) | |
download | qtlocation-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.mm | 4 |
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]]; } } |