{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3091","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3091/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3091/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3091/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3091","id":118009738,"number":3091,"title":"Annotations not showed on the Map","user":{"login":"YBthebest","id":1565896,"avatar_url":"https://avatars.githubusercontent.com/u/1565896?v=3","gravatar_id":"","url":"https://api.github.com/users/YBthebest","html_url":"https://github.com/YBthebest","followers_url":"https://api.github.com/users/YBthebest/followers","following_url":"https://api.github.com/users/YBthebest/following{/other_user}","gists_url":"https://api.github.com/users/YBthebest/gists{/gist_id}","starred_url":"https://api.github.com/users/YBthebest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YBthebest/subscriptions","organizations_url":"https://api.github.com/users/YBthebest/orgs","repos_url":"https://api.github.com/users/YBthebest/repos","events_url":"https://api.github.com/users/YBthebest/events{/privacy}","received_events_url":"https://api.github.com/users/YBthebest/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-20T10:21:51Z","updated_at":"2015-11-24T15:46:57Z","closed_at":"2015-11-20T10:27:36Z","body":"Hi,\r\n\r\nI am initialising the map like this:\r\n```\r\n    #import \"Mapbox.h\"\r\n\r\n    @interface ShowEtablissementViewController () <UIActionSheetDelegate,       MFMailComposeViewControllerDelegate, MGLMapViewDelegate>\r\n\r\n    @property (nonatomic) MGLMapView *mapView;\r\n\r\n    @end\r\n\r\n    @implementation ShowEtablissementViewController\r\n\r\n    - (void)viewDidLoad {\r\n        [super viewDidLoad];\r\n        self.mapView = [[MGLMapView alloc] initWithFrame:self.mapBoxView.bounds];\r\n        self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;\r\n        self.mapView.delegate = self;\r\n        [self.view addSubview:mapView];\r\n    }\r\n```\r\nIf I add an annotation directly here in viewDidLoad, like this:\r\n```\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    [self.mapView addAnnotation:hello];\r\n```\r\nIt doesn't appear on the map.\r\n\r\nIf I use the CLLocationManager, it doesn't appear either.\r\n\r\nBut if I do: \r\n```\r\nNSLog(@\"%@\", self.mapView.annotations);\r\n```\r\nThere is an annotation. It does exist: it just isn't displayed.\r\n```\r\n(\r\n    \"<MGLPointAnnotation: 0x141c6ce00>\"\r\n)\r\n```\r\nWhat am I missing here? Is this a real bug or an implementation error from my part?\r\n    \r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/159309492","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3091#issuecomment-159309492","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3091","id":159309492,"user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T15:46:57Z","updated_at":"2015-11-24T15:46:57Z","body":"Please open a separate bug about showAnnotations (with details on how to reproduce the issue). Thanks!"}}