{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6775","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6775/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6775/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6775/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6775","id":184335245,"number":6775,"title":"Open callout programmatically immediately after adding a MGLPointAnnotation","user":{"login":"rmnblm","id":5942764,"avatar_url":"https://avatars.githubusercontent.com/u/5942764?v=3","gravatar_id":"","url":"https://api.github.com/users/rmnblm","html_url":"https://github.com/rmnblm","followers_url":"https://api.github.com/users/rmnblm/followers","following_url":"https://api.github.com/users/rmnblm/following{/other_user}","gists_url":"https://api.github.com/users/rmnblm/gists{/gist_id}","starred_url":"https://api.github.com/users/rmnblm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmnblm/subscriptions","organizations_url":"https://api.github.com/users/rmnblm/orgs","repos_url":"https://api.github.com/users/rmnblm/repos","events_url":"https://api.github.com/users/rmnblm/events{/privacy}","received_events_url":"https://api.github.com/users/rmnblm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"000000"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/support","name":"support","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-20T20:41:38Z","updated_at":"2016-10-21T05:14:17Z","closed_at":"2016-10-21T00:04:24Z","body":"I am trying to find the best solution to show a calloutView for a MGLPointFeature coming from a style layer. My idea was to add a `MGLPointAnnotation` to the location the user tapped and delete the point annotation after he tapped on another location, repeating these steps. Sadly, the CalloutView doesn't open directly after adding the point to the map view and I can't find a way to open the CalloutView programmatically.\r\n\r\nAre there any other possible or even better solutions for this use case?\r\n\r\nPS: Of course I added the delegate method\r\n\r\n``` swift\r\nfunc mapView(_ mapView: MGLMapView, annotationCanShowCallout annotation: MGLAnnotation) -> Bool {\r\n    return true\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/255295295","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6775#issuecomment-255295295","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6775","id":255295295,"user":{"login":"rmnblm","id":5942764,"avatar_url":"https://avatars.githubusercontent.com/u/5942764?v=3","gravatar_id":"","url":"https://api.github.com/users/rmnblm","html_url":"https://github.com/rmnblm","followers_url":"https://api.github.com/users/rmnblm/followers","following_url":"https://api.github.com/users/rmnblm/following{/other_user}","gists_url":"https://api.github.com/users/rmnblm/gists{/gist_id}","starred_url":"https://api.github.com/users/rmnblm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmnblm/subscriptions","organizations_url":"https://api.github.com/users/rmnblm/orgs","repos_url":"https://api.github.com/users/rmnblm/repos","events_url":"https://api.github.com/users/rmnblm/events{/privacy}","received_events_url":"https://api.github.com/users/rmnblm/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T05:14:16Z","updated_at":"2016-10-21T05:14:16Z","body":"Oops, that was an easy one, thanks @boundsj and @friedbunny. \r\n\r\nYesterday was an exhausting day, it would've been better to go to sleep than working on my side-project last night 🙈"}}
{"actor":{"display_login":"rmnblm"}}