{"action":"opened","number":44,"pull_request":{"url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/44","id":36569440,"html_url":"https://github.com/bsudekum/react-native-mapbox-gl/pull/44","diff_url":"https://github.com/bsudekum/react-native-mapbox-gl/pull/44.diff","patch_url":"https://github.com/bsudekum/react-native-mapbox-gl/pull/44.patch","issue_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/44","number":44,"state":"open","locked":false,"title":"fix indentation, add annotation function","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"body":"ref: https://github.com/bsudekum/react-native-mapbox-gl/issues/43\r\n\r\nAdds the ability to: \r\n```jsx\r\n<Text onPress={() => this.addAnnotation(mapRef, [{\r\n  latitude: 0,\r\n  longitude:  0,\r\n  title: 'This is marker 1',\r\n},{\r\n  latitude: 20,\r\n  longitude:  10,\r\n  subtitle: 'foo'\r\n}])}> // Adds new markers to the map without redrawing\r\n```\r\n\r\nMy only issue here is that this blows away the previous markers on the map. I'm not certain if this a good thing or a bad thing. Perhaps marker management should be left up to the user. \r\n\r\nThis also fixes indentation. ","created_at":"2015-05-30T17:57:27Z","updated_at":"2015-05-30T17:57:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/44/commits","review_comments_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/44/comments","review_comment_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/44/comments","statuses_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/statuses/3ea7ad5e46cce73d50514ec892ab6c9563ef1721","head":{"label":"bsudekum:addAnnotation","ref":"addAnnotation","sha":"3ea7ad5e46cce73d50514ec892ab6c9563ef1721","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"repo":{"id":34629135,"name":"react-native-mapbox-gl","full_name":"bsudekum/react-native-mapbox-gl","owner":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsudekum/react-native-mapbox-gl","description":"A Mapbox GL react native module for creating custom maps","fork":false,"url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl","forks_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/forks","keys_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/teams","hooks_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/hooks","issue_events_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/events{/number}","events_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/events","assignees_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/assignees{/user}","branches_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/branches{/branch}","tags_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/tags","blobs_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/statuses/{sha}","languages_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/languages","stargazers_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/stargazers","contributors_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/contributors","subscribers_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/subscribers","subscription_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/subscription","commits_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/contents/{+path}","compare_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/merges","archive_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/downloads","issues_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues{/number}","pulls_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls{/number}","milestones_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/milestones{/number}","notifications_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/labels{/name}","releases_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/releases{/id}","created_at":"2015-04-26T20:08:07Z","updated_at":"2015-05-30T08:43:58Z","pushed_at":"2015-05-30T17:57:27Z","git_url":"git://github.com/bsudekum/react-native-mapbox-gl.git","ssh_url":"git@github.com:bsudekum/react-native-mapbox-gl.git","clone_url":"https://github.com/bsudekum/react-native-mapbox-gl.git","svn_url":"https://github.com/bsudekum/react-native-mapbox-gl","homepage":"","size":665,"stargazers_count":44,"watchers_count":44,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":44,"default_branch":"master"}},"base":{"label":"bsudekum:master","ref":"master","sha":"94c2b5b09a5cbd9e45be7c676f6e705534dbe4e7","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"repo":{"id":34629135,"name":"react-native-mapbox-gl","full_name":"bsudekum/react-native-mapbox-gl","owner":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsudekum/react-native-mapbox-gl","description":"A Mapbox GL react native module for creating custom maps","fork":false,"url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl","forks_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/forks","keys_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/teams","hooks_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/hooks","issue_events_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/events{/number}","events_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/events","assignees_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/assignees{/user}","branches_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/branches{/branch}","tags_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/tags","blobs_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/statuses/{sha}","languages_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/languages","stargazers_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/stargazers","contributors_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/contributors","subscribers_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/subscribers","subscription_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/subscription","commits_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/contents/{+path}","compare_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/merges","archive_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/downloads","issues_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues{/number}","pulls_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls{/number}","milestones_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/milestones{/number}","notifications_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/labels{/name}","releases_url":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/releases{/id}","created_at":"2015-04-26T20:08:07Z","updated_at":"2015-05-30T08:43:58Z","pushed_at":"2015-05-30T17:57:27Z","git_url":"git://github.com/bsudekum/react-native-mapbox-gl.git","ssh_url":"git@github.com:bsudekum/react-native-mapbox-gl.git","clone_url":"https://github.com/bsudekum/react-native-mapbox-gl.git","svn_url":"https://github.com/bsudekum/react-native-mapbox-gl","homepage":"","size":665,"stargazers_count":44,"watchers_count":44,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/44"},"html":{"href":"https://github.com/bsudekum/react-native-mapbox-gl/pull/44"},"issue":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/44"},"comments":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/bsudekum/react-native-mapbox-gl/statuses/3ea7ad5e46cce73d50514ec892ab6c9563ef1721"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":209,"deletions":171,"changed_files":4}}