{"action":"created","issue":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/76","repository_url":"https://api.github.com/repos/alex3165/react-mapbox-gl","labels_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/76/comments","events_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/76/events","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/76","id":194106395,"number":76,"title":"ZoomControl doesn't respect movingMethod","user":{"login":"kimmobrunfeldt","id":1232405,"avatar_url":"https://avatars.githubusercontent.com/u/1232405?v=3","gravatar_id":"","url":"https://api.github.com/users/kimmobrunfeldt","html_url":"https://github.com/kimmobrunfeldt","followers_url":"https://api.github.com/users/kimmobrunfeldt/followers","following_url":"https://api.github.com/users/kimmobrunfeldt/following{/other_user}","gists_url":"https://api.github.com/users/kimmobrunfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/kimmobrunfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimmobrunfeldt/subscriptions","organizations_url":"https://api.github.com/users/kimmobrunfeldt/orgs","repos_url":"https://api.github.com/users/kimmobrunfeldt/repos","events_url":"https://api.github.com/users/kimmobrunfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/kimmobrunfeldt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T17:00:49Z","updated_at":"2016-12-08T18:41:07Z","closed_at":null,"body":"When adding a ZoomControl to map without any options, map's movingMethod option is not respected.\r\n\r\n**Expected:**\r\n![map2](https://cloud.githubusercontent.com/assets/1232405/20977780/3edc9e38-bcaf-11e6-931a-ee320dd976a0.gif)\r\n\r\nAnimated zooming. Definition in API docs: \r\n\r\n> movingMethod (Default: flyTo): String define the method used when changing the center or zoom position. \r\n\r\n**What happens:**\r\n![map1](https://cloud.githubusercontent.com/assets/1232405/20977790/46aa0498-bcaf-11e6-8af5-19cecb8389b9.gif)\r\n\r\nZooming without animation.\r\n\r\n**MyMap.js**:\r\n\r\n```js\r\nimport React from 'react';\r\nimport ReactMapboxGl, { Layer, Feature, Marker, ZoomControl } from 'react-mapbox-gl';\r\n\r\nconst MyMap = React.createClass({\r\n  getInitialState() {\r\n    return {\r\n      style: 'mapbox://styles/mapbox/light-v9',\r\n    };\r\n  },\r\n\r\n  render() {\r\n    const { state, props } = this;\r\n\r\n    return (\r\n      <div className=\"MyMap\" style={{width: 500, height: 700}}>\r\n          <ReactMapboxGl\r\n            style={state.style}\r\n            accessToken=\"pk.eyJ1IjoiZmFicmljOCIsImEiOiJjaWc5aTV1ZzUwMDJwdzJrb2w0dXRmc2d0In0.p6GGlfyV-WksaDV_KdN27A\"\r\n          >\r\n            <ZoomControl />\r\n          </ReactMapboxGl>\r\n      </div>\r\n    );\r\n  }\r\n});\r\n\r\nexport default MyMap;\r\n\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/comments/265819012","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/76#issuecomment-265819012","issue_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/76","id":265819012,"user":{"login":"kimmobrunfeldt","id":1232405,"avatar_url":"https://avatars.githubusercontent.com/u/1232405?v=3","gravatar_id":"","url":"https://api.github.com/users/kimmobrunfeldt","html_url":"https://github.com/kimmobrunfeldt","followers_url":"https://api.github.com/users/kimmobrunfeldt/followers","following_url":"https://api.github.com/users/kimmobrunfeldt/following{/other_user}","gists_url":"https://api.github.com/users/kimmobrunfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/kimmobrunfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimmobrunfeldt/subscriptions","organizations_url":"https://api.github.com/users/kimmobrunfeldt/orgs","repos_url":"https://api.github.com/users/kimmobrunfeldt/repos","events_url":"https://api.github.com/users/kimmobrunfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/kimmobrunfeldt/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T18:41:07Z","updated_at":"2016-12-08T18:41:07Z","body":"Ok awesome! "}}
{"actor":{"display_login":"kimmobrunfeldt"}}