{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/294","repository_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl","labels_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/294/comments","events_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/294/events","html_url":"https://github.com/mapbox/react-native-mapbox-gl/issues/294","id":137850975,"number":294,"title":"Getting id for android annotation","user":{"login":"maqen","id":35422,"avatar_url":"https://avatars.githubusercontent.com/u/35422?v=3","gravatar_id":"","url":"https://api.github.com/users/maqen","html_url":"https://github.com/maqen","followers_url":"https://api.github.com/users/maqen/followers","following_url":"https://api.github.com/users/maqen/following{/other_user}","gists_url":"https://api.github.com/users/maqen/gists{/gist_id}","starred_url":"https://api.github.com/users/maqen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maqen/subscriptions","organizations_url":"https://api.github.com/users/maqen/orgs","repos_url":"https://api.github.com/users/maqen/repos","events_url":"https://api.github.com/users/maqen/events{/privacy}","received_events_url":"https://api.github.com/users/maqen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T11:40:33Z","updated_at":"2016-04-14T12:17:01Z","closed_at":null,"body":"Hi!\r\n\r\nIs the id passed to the annotation object upon adding it to a map?\r\n\r\nLogging seems to only return\r\n```\r\n{ src: \r\n  {\r\n    longitude: -73.9878,\r\n    subtitle: 'Neat, this is a custom annotation image',\r\n    latitude: 40.7223,\r\n    title: 'Important!' \r\n  }\r\n}\r\n```\r\nAdding it to state as per example\r\n\r\n```\r\nannotations: [{\r\n  coordinates: [40.7223, -73.9878],\r\n  type: 'point',\r\n  title: 'Important!',\r\n  subtitle: 'Neat, this is a custom annotation image',\r\n  id: 'marker2'\r\n}]\r\n```\r\n\r\nHas this something to do with `id` never being set on the native annotation? \r\nhttps://github.com/mapbox/react-native-mapbox-gl/blob/master/android/src/main/java/com/mapbox/reactnativemapboxgl/ReactNativeMapboxGLManager.java#L126\r\n\r\nAs opposed to being set in iOS like this https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/RCTMapboxGL/RCTMapboxGLManager.m#L385"},"comment":{"url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/comments/209911077","html_url":"https://github.com/mapbox/react-native-mapbox-gl/issues/294#issuecomment-209911077","issue_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/294","id":209911077,"user":{"login":"maqen","id":35422,"avatar_url":"https://avatars.githubusercontent.com/u/35422?v=3","gravatar_id":"","url":"https://api.github.com/users/maqen","html_url":"https://github.com/maqen","followers_url":"https://api.github.com/users/maqen/followers","following_url":"https://api.github.com/users/maqen/following{/other_user}","gists_url":"https://api.github.com/users/maqen/gists{/gist_id}","starred_url":"https://api.github.com/users/maqen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maqen/subscriptions","organizations_url":"https://api.github.com/users/maqen/orgs","repos_url":"https://api.github.com/users/maqen/repos","events_url":"https://api.github.com/users/maqen/events{/privacy}","received_events_url":"https://api.github.com/users/maqen/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T12:17:01Z","updated_at":"2016-04-14T12:17:01Z","body":"Yes @vespakoen it works on iOS, please see https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/RCTMapboxGL/RCTMapboxGLManager.m#L374\r\n\r\nLet's look forward to some way to expose/introduce id for android native SDK"}}