{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1181","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1181/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1181/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1181/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1181","id":65968386,"number":1181,"title":"Cannot set zoom immediately after setting center coordinate","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":3,"created_at":"2015-04-02T16:57:43Z","updated_at":"2015-04-02T20:45:18Z","closed_at":null,"body":"The following code takes you to the lovely town of Emerald, Victoria, Australia:\r\n\r\n```objc\r\nself.mapView.zoomLevel = 15;\r\n[self.mapView setCenterCoordinate:CLLocationCoordinate2DMake(-23.526029999999999, 148.16224)];\r\n```\r\n\r\n![vic](https://cloud.githubusercontent.com/assets/1231218/6968788/3978b16e-d91e-11e4-9dba-1d2c2d28de3b.png)\r\n\r\nBut reverse the two calls and you wind up off the coast of Papua New Guinea:\r\n\r\n```obc\r\n[self.mapView setCenterCoordinate:CLLocationCoordinate2DMake(-23.526029999999999, 148.16224)];\r\nself.mapView.zoomLevel = 15;\r\n```\r\n\r\n![png](https://cloud.githubusercontent.com/assets/1231218/6968792/3d8289f6-d91e-11e4-9415-6084003b92b2.png)\r\n\r\n`-[MGLMapView setCenterCoordinate:zoomLevel:animated:]` works fine of course, but I need something less atomic to make #929 work well. Otherwise you have to ensure that `zoomLevel` appears before `latitude` or `longitude` in the storyboard XML. (Interface Builder doesn’t let you rearrange user-defined runtime attributes using the inspector.)"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/89040638","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1181#issuecomment-89040638","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1181","id":89040638,"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-04-02T20:45:18Z","updated_at":"2015-04-02T20:45:18Z","body":"Nice catch, @friedbunny! Fixed."}}