{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3169","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3169/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3169/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3169/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3169","id":176066376,"number":3169,"title":"Mapbox not displaying navigation controls in React","user":{"login":"matheusml","id":444202,"avatar_url":"https://avatars.githubusercontent.com/u/444202?v=3","gravatar_id":"","url":"https://api.github.com/users/matheusml","html_url":"https://github.com/matheusml","followers_url":"https://api.github.com/users/matheusml/followers","following_url":"https://api.github.com/users/matheusml/following{/other_user}","gists_url":"https://api.github.com/users/matheusml/gists{/gist_id}","starred_url":"https://api.github.com/users/matheusml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheusml/subscriptions","organizations_url":"https://api.github.com/users/matheusml/orgs","repos_url":"https://api.github.com/users/matheusml/repos","events_url":"https://api.github.com/users/matheusml/events{/privacy}","received_events_url":"https://api.github.com/users/matheusml/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-09T17:40:36Z","updated_at":"2016-09-09T21:20:23Z","closed_at":null,"body":"I'm using React.js 15.3.1 and Mapbox GL 0.23.0.\r\n\r\nI want to display navigation controls in my map, but it's not showing up.\r\n\r\nHere's my code:\r\n\r\n```javascript\r\nclass Home extends Component {\r\n  constructor(props) {\r\n    super(props);\r\n\r\n    mapboxgl.accessToken = MAPBOX_TOKEN;\r\n  }\r\n\r\n  componentDidMount() {\r\n    const map = new mapboxgl.Map({\r\n      container: 'map',\r\n      style: 'mapbox://styles/mapbox/light-v9',\r\n      center: [20, 40],\r\n      zoom: 1.2,\r\n    });\r\n\r\n    map.addControl(new mapboxgl.Navigation());\r\n  }\r\n\r\n  render() {\r\n    return <div id=\"map\" style={styles} />;\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/246043265","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3169#issuecomment-246043265","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3169","id":246043265,"user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T21:20:23Z","updated_at":"2016-09-09T21:20:23Z","body":"Ok, can you set up the JSFiddle?"}}
{"actor":{"display_login":"jfirebaugh"}}