{"action":"created","issue":{"url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift/issues/23","repository_url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift","labels_url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift/issues/23/comments","events_url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift/issues/23/events","html_url":"https://github.com/ribl/FBAnnotationClusteringSwift/issues/23","id":141376477,"number":23,"title":"Clusters/pins don't appear until delegate method, regionDidChange is called","user":{"login":"brettalcox","id":7462622,"avatar_url":"https://avatars.githubusercontent.com/u/7462622?v=3","gravatar_id":"","url":"https://api.github.com/users/brettalcox","html_url":"https://github.com/brettalcox","followers_url":"https://api.github.com/users/brettalcox/followers","following_url":"https://api.github.com/users/brettalcox/following{/other_user}","gists_url":"https://api.github.com/users/brettalcox/gists{/gist_id}","starred_url":"https://api.github.com/users/brettalcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettalcox/subscriptions","organizations_url":"https://api.github.com/users/brettalcox/orgs","repos_url":"https://api.github.com/users/brettalcox/repos","events_url":"https://api.github.com/users/brettalcox/events{/privacy}","received_events_url":"https://api.github.com/users/brettalcox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T19:25:52Z","updated_at":"2016-03-18T01:13:06Z","closed_at":null,"body":"Is there anyway to have the pins and clusters display when the map loads? It looks like the map is empty until the users pans/zooms, then they appear."},"comment":{"url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift/issues/comments/198150811","html_url":"https://github.com/ribl/FBAnnotationClusteringSwift/issues/23#issuecomment-198150811","issue_url":"https://api.github.com/repos/ribl/FBAnnotationClusteringSwift/issues/23","id":198150811,"user":{"login":"chenr2","id":10889121,"avatar_url":"https://avatars.githubusercontent.com/u/10889121?v=3","gravatar_id":"","url":"https://api.github.com/users/chenr2","html_url":"https://github.com/chenr2","followers_url":"https://api.github.com/users/chenr2/followers","following_url":"https://api.github.com/users/chenr2/following{/other_user}","gists_url":"https://api.github.com/users/chenr2/gists{/gist_id}","starred_url":"https://api.github.com/users/chenr2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenr2/subscriptions","organizations_url":"https://api.github.com/users/chenr2/orgs","repos_url":"https://api.github.com/users/chenr2/repos","events_url":"https://api.github.com/users/chenr2/events{/privacy}","received_events_url":"https://api.github.com/users/chenr2/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T01:13:06Z","updated_at":"2016-03-18T01:13:06Z","body":"@brettalcox I could be wrong, but I thought that `mapView(_:regionDidChangeAnimated:)` gets called a bunch of times, even if you don't set `mapView.centerCoordinate`. I'm surprised that your map is empty until the user touches the map. I suppose you also call the cluster display code from `viewDidAppear` to get that initial call. But I've never done this because I tend to have the opposite problem of `regionDidChangeAnimated` getting called way too many times.\r\n\r\nAs for setting the user location, I usually don't set the `centerCoordinate`. Rather, I do something like this:\r\n\r\n```swift\r\nfunc locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {\r\n    if let location = locations.first {\r\n        let span = MKCoordinateSpanMake(0.05, 0.05)\r\n        let region = MKCoordinateRegion(center: location.coordinate, span: span)\r\n        mapView.setRegion(region, animated: true)\r\n    }\r\n}\r\n```\r\n\r\nThis code snippet is taken from a [blog post I wrote](http://www.thorntech.com/2016/01/how-to-search-for-location-using-apples-mapkit/) which has a section on getting the user's location, and zooming to it. "}}