{"action":"closed","issue":{"url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/334","repository_url":"https://api.github.com/repos/tomchentw/react-google-maps","labels_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/334/comments","events_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/334/events","html_url":"https://github.com/tomchentw/react-google-maps/issues/334","id":175557947,"number":334,"title":"how to panTo a location?","user":{"login":"SourceNova","id":21176507,"avatar_url":"https://avatars.githubusercontent.com/u/21176507?v=3","gravatar_id":"","url":"https://api.github.com/users/SourceNova","html_url":"https://github.com/SourceNova","followers_url":"https://api.github.com/users/SourceNova/followers","following_url":"https://api.github.com/users/SourceNova/following{/other_user}","gists_url":"https://api.github.com/users/SourceNova/gists{/gist_id}","starred_url":"https://api.github.com/users/SourceNova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SourceNova/subscriptions","organizations_url":"https://api.github.com/users/SourceNova/orgs","repos_url":"https://api.github.com/users/SourceNova/repos","events_url":"https://api.github.com/users/SourceNova/events{/privacy}","received_events_url":"https://api.github.com/users/SourceNova/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-07T17:13:01Z","updated_at":"2016-10-06T03:20:14Z","closed_at":"2016-10-06T03:20:14Z","body":"Hi,\r\nI can't use the functions you mad public in the GoogleMap component. For example:\r\npanTo(latLng) { return (this.props.map || this.refs.delegate).panTo(latLng); }\r\n\r\nwhen i try to use panTo on the ref of the map, i get this Error:\r\nTypeError: map.panTo is not a function\r\n\r\nmy code:\r\n<GoogleMap\r\n    ref={(map) => map.panTo({lat: 25.0112183,lng: 121.52067570000001})}\r\n    defaultZoom={12}\r\n    onClick={this.props.onMapClick}\r\n...\r\n\r\nyour help would be much appreciated."}}
{"actor":{"display_login":"tomchentw"}}