{"action":"created","issue":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/385","repository_url":"https://api.github.com/repos/alex3165/react-mapbox-gl","labels_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/385/comments","events_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/385/events","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/385","id":260677533,"number":385,"title":"onMouseEnter only called once when moved over overlapping circles","user":{"login":"dedan","id":196905,"avatar_url":"https://avatars2.githubusercontent.com/u/196905?v=4","gravatar_id":"","url":"https://api.github.com/users/dedan","html_url":"https://github.com/dedan","followers_url":"https://api.github.com/users/dedan/followers","following_url":"https://api.github.com/users/dedan/following{/other_user}","gists_url":"https://api.github.com/users/dedan/gists{/gist_id}","starred_url":"https://api.github.com/users/dedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedan/subscriptions","organizations_url":"https://api.github.com/users/dedan/orgs","repos_url":"https://api.github.com/users/dedan/repos","events_url":"https://api.github.com/users/dedan/events{/privacy}","received_events_url":"https://api.github.com/users/dedan/received_events","type":"User","site_admin":false},"labels":[{"id":359059584,"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/labels/bug","name":"bug","color":"ee0701","default":true},{"id":428396016,"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/labels/priority%20+","name":"priority +","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-26T15:53:57Z","updated_at":"2017-09-27T09:00:29Z","closed_at":null,"author_association":"NONE","body":"I'm currently plotting a lot of points on a map and some of them are overlapping each other. I want to show a popup when I hover over the points. Now I noticed that `onMouseEnter` is not called when I move the mouse from one circle to another, when the two are overlapping and `onMouseLeave` is not called in between. \r\n\r\nI prepared [an example](https://www.webpackbin.com/bins/-KuykjWObH7Ccmoo8z9x) for you. You have to zoom in a little bit until the circles look like for example in the following image. When you move your mouse horizontally over the circles, I would have expected a second console output as soon as the mouse is over an areas that is only covered by the second circle. However it isn't. \r\n\r\n<img width=\"457\" alt=\"screen shot 2017-09-26 at 5 48 53 pm\" src=\"https://user-images.githubusercontent.com/196905/30870222-9a8c2b52-a2e3-11e7-9869-43ff016aafe0.png\">\r\n\r\nAm I doing it wrong again or is this really a bug?\r\n\r\nThanks for the great work and your fast responses, that's awesome! "},"comment":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/comments/332457065","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/385#issuecomment-332457065","issue_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/385","id":332457065,"user":{"login":"SBRK","id":119354,"avatar_url":"https://avatars3.githubusercontent.com/u/119354?v=4","gravatar_id":"","url":"https://api.github.com/users/SBRK","html_url":"https://github.com/SBRK","followers_url":"https://api.github.com/users/SBRK/followers","following_url":"https://api.github.com/users/SBRK/following{/other_user}","gists_url":"https://api.github.com/users/SBRK/gists{/gist_id}","starred_url":"https://api.github.com/users/SBRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBRK/subscriptions","organizations_url":"https://api.github.com/users/SBRK/orgs","repos_url":"https://api.github.com/users/SBRK/repos","events_url":"https://api.github.com/users/SBRK/events{/privacy}","received_events_url":"https://api.github.com/users/SBRK/received_events","type":"User","site_admin":false},"created_at":"2017-09-27T09:00:29Z","updated_at":"2017-09-27T09:00:29Z","author_association":"CONTRIBUTOR","body":"For this kind of thing, I use a `GeoJSONLayer` and listen to `onMouseMove` and `onMouseLeave`. In your mouse move event handler, you get the feature with `event.features[0]` (and can access other features that are hovered (if any) with [1], [2], etc...) and mouse leave is triggered when no feature is hovered"}}
{"actor":{"display_login":"SBRK"}}