{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2490","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2490/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2490/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2490/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2490","id":109371507,"number":2490,"title":"allow for iOS annotation.enabled","user":{"login":"incanus","id":17722,"avatar_url":"https://avatars.githubusercontent.com/u/17722?v=3","gravatar_id":"","url":"https://api.github.com/users/incanus","html_url":"https://github.com/incanus","followers_url":"https://api.github.com/users/incanus/followers","following_url":"https://api.github.com/users/incanus/following{/other_user}","gists_url":"https://api.github.com/users/incanus/gists{/gist_id}","starred_url":"https://api.github.com/users/incanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incanus/subscriptions","organizations_url":"https://api.github.com/users/incanus/orgs","repos_url":"https://api.github.com/users/incanus/repos","events_url":"https://api.github.com/users/incanus/events{/privacy}","received_events_url":"https://api.github.com/users/incanus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/feature","name":"feature","color":"0052cc"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/parity","name":"parity","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"incanus","id":17722,"avatar_url":"https://avatars.githubusercontent.com/u/17722?v=3","gravatar_id":"","url":"https://api.github.com/users/incanus","html_url":"https://github.com/incanus","followers_url":"https://api.github.com/users/incanus/followers","following_url":"https://api.github.com/users/incanus/following{/other_user}","gists_url":"https://api.github.com/users/incanus/gists{/gist_id}","starred_url":"https://api.github.com/users/incanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incanus/subscriptions","organizations_url":"https://api.github.com/users/incanus/orgs","repos_url":"https://api.github.com/users/incanus/repos","events_url":"https://api.github.com/users/incanus/events{/privacy}","received_events_url":"https://api.github.com/users/incanus/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-10-01T19:57:39Z","updated_at":"2015-10-01T23:52:39Z","closed_at":null,"body":"As with MapKit, this prevents selecting certain annotations or showing a callout. "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/144879912","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2490#issuecomment-144879912","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2490","id":144879912,"user":{"login":"incanus","id":17722,"avatar_url":"https://avatars.githubusercontent.com/u/17722?v=3","gravatar_id":"","url":"https://api.github.com/users/incanus","html_url":"https://github.com/incanus","followers_url":"https://api.github.com/users/incanus/followers","following_url":"https://api.github.com/users/incanus/following{/other_user}","gists_url":"https://api.github.com/users/incanus/gists{/gist_id}","starred_url":"https://api.github.com/users/incanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incanus/subscriptions","organizations_url":"https://api.github.com/users/incanus/orgs","repos_url":"https://api.github.com/users/incanus/repos","events_url":"https://api.github.com/users/incanus/events{/privacy}","received_events_url":"https://api.github.com/users/incanus/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T23:52:39Z","updated_at":"2015-10-01T23:52:39Z","body":"Ok, one more rethink here. Firing so many delegate callbacks (possibly thousands) every time a tap happens isn't gonna work. \r\n\r\nI'm going back to the original idea, which is building up `MGLAnnotationImage.enabled` in the style of MapKit's annotation views. However, this will only be queried the first time on the delegate, meaning the `enabled` flag can only be decided once and then not adjusted at runtime. \r\n\r\nEventually, when/if we have annotation views, we'd add an `-[MGLMapView viewForAnnotation:]` (not a delegate method) which just lets the user get at this for future manipulation. But we'll need more re-architecting under the hood before that, and this meets the base need here, which is _a way_ to prevent annotation selection. "}}