{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1743","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1743/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1743/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1743/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1743","id":88976628,"number":1743,"title":"Show annotation's callout view automatically if title is set","user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T10:15:22Z","updated_at":"2015-06-17T16:51:48Z","closed_at":null,"body":"If an annotation has its `title` property set, tapping the annotation should present the callout automatically, without having to manually return true in the `mapView:annotationCanShowCallout:` delegate method.\r\n\r\n```objc\r\n- (void)viewDidLoad {\r\n    ...\r\n\r\n    // Declare the marker `hello` and set its coordinates, title, and subtitle\r\n    MGLPointAnnotation *hello = [[MGLPointAnnotation alloc] init];\r\n    hello.coordinate = CLLocationCoordinate2DMake(40.7326808, -73.9843407);\r\n    hello.title = @\"Hello world!\";\r\n    hello.subtitle = @\"Welcome to my marker\";\r\n    \r\n    // Add marker `hello` to the map\r\n    [mapView addAnnotation:hello];\r\n}\r\n```\r\n\r\n```objc\r\n// Allow markers callouts to show when tapped\r\n- (BOOL)mapView:(MGLMapView *)mapView annotationCanShowCallout:(id <MGLAnnotation>)annotation {\r\n    return YES;\r\n}\r\n```\r\n\r\n/cc @incanus @1ec5"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/112874941","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1743#issuecomment-112874941","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1743","id":112874941,"user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T16:51:48Z","updated_at":"2015-06-17T16:51:48Z","body":"MapKit will display the callout automatically on tap, but only if the marker hasn't been otherwise customized."}}