{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/647","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/647/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/647/comments","events_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/647/events","html_url":"https://github.com/mapbox/react-native-mapbox-gl/issues/647","id":260565317,"number":647,"title":"[iOS] Touch does not go through custom marker on 2nd render","user":{"login":"henrikra","id":12229968,"avatar_url":"https://avatars1.githubusercontent.com/u/12229968?v=4","gravatar_id":"","url":"https://api.github.com/users/henrikra","html_url":"https://github.com/henrikra","followers_url":"https://api.github.com/users/henrikra/followers","following_url":"https://api.github.com/users/henrikra/following{/other_user}","gists_url":"https://api.github.com/users/henrikra/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikra/subscriptions","organizations_url":"https://api.github.com/users/henrikra/orgs","repos_url":"https://api.github.com/users/henrikra/repos","events_url":"https://api.github.com/users/henrikra/events{/privacy}","received_events_url":"https://api.github.com/users/henrikra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-26T10:02:36Z","updated_at":"2017-09-26T10:02:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I render custom marker without condition statement aka markers are rendered once then my touch events go through the marker which is good thing. But when my condition is true so that the second marker is rendered to the map my touches does not go through the markers at all! This is preventing me from dragging the map around which is very annoying.\r\n\r\nIn example code when `toMarker` is rendered both markers prevent touch event through them!\r\n\r\n```js\r\n<MapView>\r\n  <Annotation\r\n    id=\"fromMarker\"\r\n    coordinate={{\r\n      latitude: fromLocation.location.lat,\r\n      longitude: fromLocation.location.lon,\r\n    }}\r\n  >\r\n    {/* stuff */}\r\n  </Annotation>\r\n  {this.state.toLocation && (\r\n    <Annotation\r\n      id=\"toMarker\"\r\n      coordinate={{\r\n        latitude: toLocation.location.lat,\r\n        longitude: toLocation.location.lon,\r\n      }}\r\n    >\r\n      {/* stuff */}\r\n    </Annotation>\r\n  )}\r\n</MapView>\r\n```\r\n\r\nTell me if you need more info @nitaliano "}}
{"actor":{"display_login":"henrikra"}}