{"action":"created","issue":{"url":"https://api.github.com/repos/fullstackreact/google-maps-react/issues/288","repository_url":"https://api.github.com/repos/fullstackreact/google-maps-react","labels_url":"https://api.github.com/repos/fullstackreact/google-maps-react/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/fullstackreact/google-maps-react/issues/288/comments","events_url":"https://api.github.com/repos/fullstackreact/google-maps-react/issues/288/events","html_url":"https://github.com/fullstackreact/google-maps-react/issues/288","id":383360784,"node_id":"MDU6SXNzdWUzODMzNjA3ODQ=","number":288,"title":"Map stuck at \"Loading Map","user":{"login":"Bytegardener","id":38676820,"node_id":"MDQ6VXNlcjM4Njc2ODIw","avatar_url":"https://avatars0.githubusercontent.com/u/38676820?v=4","gravatar_id":"","url":"https://api.github.com/users/Bytegardener","html_url":"https://github.com/Bytegardener","followers_url":"https://api.github.com/users/Bytegardener/followers","following_url":"https://api.github.com/users/Bytegardener/following{/other_user}","gists_url":"https://api.github.com/users/Bytegardener/gists{/gist_id}","starred_url":"https://api.github.com/users/Bytegardener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bytegardener/subscriptions","organizations_url":"https://api.github.com/users/Bytegardener/orgs","repos_url":"https://api.github.com/users/Bytegardener/repos","events_url":"https://api.github.com/users/Bytegardener/events{/privacy}","received_events_url":"https://api.github.com/users/Bytegardener/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-22T02:46:07Z","updated_at":"2019-03-05T11:24:41Z","closed_at":null,"author_association":"NONE","body":"import { Map, GoogleApiWrapper } from \"google-maps-react\";\r\nimport React, { Component } from \"react\";\r\n\r\nexport class MapContainer extends Component {\r\n\trender() {\r\n\t\tconst style = {\r\n\t\t\twidth: \"100%\",\r\n\t\t\theight: \"100%\",\r\n\t\t};\r\n\t\treturn (\r\n\t\t\t<Map\r\n\t\t\t\tgoogle={this.props.google}\r\n\t\t\t\tinitialCenter={{\r\n\t\t\t\t\tlat: 40.854885,\r\n\t\t\t\t\tlng: -88.081807,\r\n\t\t\t\t}}\r\n\t\t\t\tzoom={15}\r\n\t\t\t\tstyle={style}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default GoogleApiWrapper({\r\n\tapiKey:\"GoogleJavascriptAPIkey\"\r\n})(MapContainer);\r\n"},"comment":{"url":"https://api.github.com/repos/fullstackreact/google-maps-react/issues/comments/469644719","html_url":"https://github.com/fullstackreact/google-maps-react/issues/288#issuecomment-469644719","issue_url":"https://api.github.com/repos/fullstackreact/google-maps-react/issues/288","id":469644719,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2OTY0NDcxOQ==","user":{"login":"saikrishh123","id":12800261,"node_id":"MDQ6VXNlcjEyODAwMjYx","avatar_url":"https://avatars2.githubusercontent.com/u/12800261?v=4","gravatar_id":"","url":"https://api.github.com/users/saikrishh123","html_url":"https://github.com/saikrishh123","followers_url":"https://api.github.com/users/saikrishh123/followers","following_url":"https://api.github.com/users/saikrishh123/following{/other_user}","gists_url":"https://api.github.com/users/saikrishh123/gists{/gist_id}","starred_url":"https://api.github.com/users/saikrishh123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saikrishh123/subscriptions","organizations_url":"https://api.github.com/users/saikrishh123/orgs","repos_url":"https://api.github.com/users/saikrishh123/repos","events_url":"https://api.github.com/users/saikrishh123/events{/privacy}","received_events_url":"https://api.github.com/users/saikrishh123/received_events","type":"User","site_admin":false},"created_at":"2019-03-05T11:24:41Z","updated_at":"2019-03-05T11:24:41Z","author_association":"NONE","body":"> I ran into this issue when I was only importing the component `MapContainer` like so (AutoImport fail):\r\n> `import { MapContainer } from \"./MapContainer\";`\r\n> The GoogleApiWrapper is not hooking up to the MapContainer in this case.\r\n> \r\n> This was solved when I changed it to:\r\n> `import MapContainer from \"./MapContainer\";`\r\n\r\nThanks. It worked like a miracle after I wasted almost an hour thinking what's wrong with my code. "}}
{"actor":{"display_login":"saikrishh123"}}