summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-05-10 04:19:01 -0700
committerMinh Nguyễn <mxn@1ec5.org>2015-05-10 04:19:01 -0700
commit4de7f89f47ba286b00cc3510f07b1cceb3a3c57e (patch)
tree42fe042feb8a551935368a32a44909bc1266b8b5 /platform
parent965f90c449bc607caa7a34ebf0f762fdfb01417a (diff)
downloadqtlocation-mapboxgl-4de7f89f47ba286b00cc3510f07b1cceb3a3c57e.tar.gz
Turned copyright notices into action buttons
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapView.mm10
1 files changed, 8 insertions, 2 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index c7bceb1c77..49ed423468 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -1255,12 +1255,13 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
- (void)showAttribution
{
- UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"© Mapbox © OpenStreetMap"
+ UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"Mapbox GL for iOS"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:
- @"About This Map",
+ @"© Mapbox",
+ @"© OpenStreetMap",
@"Improve This Map",
nil];
[sheet showFromRect:self.attributionButton.frame inView:self animated:YES];
@@ -1276,6 +1277,11 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
else if (buttonIndex == actionSheet.firstOtherButtonIndex + 1)
{
[[UIApplication sharedApplication] openURL:
+ [NSURL URLWithString:@"http://www.openstreetmap.org/about/"]];
+ }
+ else if (buttonIndex == actionSheet.firstOtherButtonIndex + 2)
+ {
+ [[UIApplication sharedApplication] openURL:
[NSURL URLWithString:@"https://www.mapbox.com/map-feedback/"]];
}
}