{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1675","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1675/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1675/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1675/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1675","id":84106122,"number":1675,"title":"No annotations at initial zoom level","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},"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":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T16:58:06Z","updated_at":"2015-06-02T16:59:26Z","closed_at":null,"body":"If you follow the “[First steps with Mapbox GL for iOS](https://www.mapbox.com/guides/first-steps-gl-ios/#adding-a-marker)” guide, you wind up initializing an `MGLMapView`, centering it on the U.S. President’s front yard, and placing an annotation there, all within `-[ViewController viewDidLoad]`. But if you do all that in `-viewDidLoad`, the annotations fail to display at the initial zoom level. They appear when you zoom in or out to a different zoom level and disappear when you reenter the initial zoom level.\r\n\r\nAt launch, the map view happens to show z15 tiles:\r\n\r\n![initial](https://cloud.githubusercontent.com/assets/1231218/7941610/5a10cbf4-090d-11e5-8b85-a22145f533e5.png)\r\n\r\nThen zoom in, right to the cusp of z16:\r\n\r\n![in](https://cloud.githubusercontent.com/assets/1231218/7941621/6933daea-090d-11e5-9ebe-a7502cdbfbbe.png)\r\n\r\nAnd zoom in just a little farther to z17:\r\n\r\n![inner](https://cloud.githubusercontent.com/assets/1231218/7941642/8a2f3ff0-090d-11e5-8d61-57756c62f705.png)\r\n\r\nOr zoom out, right to the cusp of z14:\r\n\r\n![out](https://cloud.githubusercontent.com/assets/1231218/7941654/9e321590-090d-11e5-8f63-b398b3b5b4de.png)\r\n\r\nAnd a little further out to 14:\r\n\r\n![outer](https://cloud.githubusercontent.com/assets/1231218/7941668/b0eaf8f0-090d-11e5-8691-bd00177e5172.png)\r\n\r\nThe upshot is that our guide does not work as designed. We didn’t catch this issue in development because the iOS demo app only adds annotations in response to an action sheet button, not within `-viewDidLoad`.\r\n\r\nReproduces in ios-v0.3.1 as well as master, regardless of style.\r\n\r\n/cc @incanus"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/108014646","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1675#issuecomment-108014646","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1675","id":108014646,"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-06-02T16:59:26Z","updated_at":"2015-06-02T16:59:26Z","body":"Likely the same issue as https://github.com/mapbox/mapbox-gl-native/issues/1279. "}}