{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/6460","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/6460/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/6460/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/6460/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/6460","id":311778888,"number":6460,"title":"resetNorth does not fire rotate events","user":{"login":"cephirothdy2j","id":881769,"avatar_url":"https://avatars3.githubusercontent.com/u/881769?v=4","gravatar_id":"","url":"https://api.github.com/users/cephirothdy2j","html_url":"https://github.com/cephirothdy2j","followers_url":"https://api.github.com/users/cephirothdy2j/followers","following_url":"https://api.github.com/users/cephirothdy2j/following{/other_user}","gists_url":"https://api.github.com/users/cephirothdy2j/gists{/gist_id}","starred_url":"https://api.github.com/users/cephirothdy2j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cephirothdy2j/subscriptions","organizations_url":"https://api.github.com/users/cephirothdy2j/orgs","repos_url":"https://api.github.com/users/cephirothdy2j/repos","events_url":"https://api.github.com/users/cephirothdy2j/events{/privacy}","received_events_url":"https://api.github.com/users/cephirothdy2j/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-05T21:40:20Z","updated_at":"2018-04-06T13:46:38Z","closed_at":"2018-04-06T01:18:23Z","author_association":"NONE","body":"Sorry, not sure if this a bug report or a feature request ... If there is a workaround to tell when the user clicks the \"On Reset North\" button in the [Navigation Control](https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/control/navigation_control.js), I'd love to hear it.\r\n\r\n### Expected Behavior\r\n\r\nGiven that the \"Zoom In\" and \"Zoom Out\" buttons in the navigation control fire the [`zoomIn()`](https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/camera.js#L215) and [`zoomOut()`](https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/camera.js#L234) methods (and thus the `zoom*` events), I would expect that clicking the \"Reset North\" button would either fire the `rotate*` events or a new `onResetNorth` event when it calls [`resetNorth()`](https://github.com/mapbox/mapbox-gl-js/blob/master/src/ui/camera.js#L302).\r\n\r\n### Actual Behavior\r\n\r\nClicking the \"Reset North\" button only fires the `move*` events.\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/379258117","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/6460#issuecomment-379258117","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/6460","id":379258117,"user":{"login":"cephirothdy2j","id":881769,"avatar_url":"https://avatars3.githubusercontent.com/u/881769?v=4","gravatar_id":"","url":"https://api.github.com/users/cephirothdy2j","html_url":"https://github.com/cephirothdy2j","followers_url":"https://api.github.com/users/cephirothdy2j/followers","following_url":"https://api.github.com/users/cephirothdy2j/following{/other_user}","gists_url":"https://api.github.com/users/cephirothdy2j/gists{/gist_id}","starred_url":"https://api.github.com/users/cephirothdy2j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cephirothdy2j/subscriptions","organizations_url":"https://api.github.com/users/cephirothdy2j/orgs","repos_url":"https://api.github.com/users/cephirothdy2j/repos","events_url":"https://api.github.com/users/cephirothdy2j/events{/privacy}","received_events_url":"https://api.github.com/users/cephirothdy2j/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T13:46:38Z","updated_at":"2018-04-06T13:46:38Z","author_association":"NONE","body":"Here is your [JSBin demonstrating the issue](http://jsbin.com/hefiqejefi/edit?html,js,output) ...\r\n\r\n### Steps to Reproduce\r\n\r\n1. Visit the JSBin link.\r\n2. Enter an access token in the JavaScript panel.\r\n3. Rotate the map either by mouse-downing on the compass button, or mouse-downing on the map while holding the control / alt key, and moving the cursor until the map is askew.\r\n4. You will see the `rotateend` event fire in your browser's console as expected.\r\n5. Click the compass button to return the map to north (fires `resetNorth()`). You will see that the `rotateend` event does not fire per the browser's console."}}
{"actor":{"display_login":"cephirothdy2j"}}