{"action":"closed","issue":{"url":"https://api.github.com/repos/istarkov/google-map-react/issues/303","repository_url":"https://api.github.com/repos/istarkov/google-map-react","labels_url":"https://api.github.com/repos/istarkov/google-map-react/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/istarkov/google-map-react/issues/303/comments","events_url":"https://api.github.com/repos/istarkov/google-map-react/issues/303/events","html_url":"https://github.com/istarkov/google-map-react/issues/303","id":200867600,"number":303,"title":"Issues loading places script for SearchField ","user":{"login":"MidnightP","id":22522186,"avatar_url":"https://avatars0.githubusercontent.com/u/22522186?v=4","gravatar_id":"","url":"https://api.github.com/users/MidnightP","html_url":"https://github.com/MidnightP","followers_url":"https://api.github.com/users/MidnightP/followers","following_url":"https://api.github.com/users/MidnightP/following{/other_user}","gists_url":"https://api.github.com/users/MidnightP/gists{/gist_id}","starred_url":"https://api.github.com/users/MidnightP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MidnightP/subscriptions","organizations_url":"https://api.github.com/users/MidnightP/orgs","repos_url":"https://api.github.com/users/MidnightP/repos","events_url":"https://api.github.com/users/MidnightP/events{/privacy}","received_events_url":"https://api.github.com/users/MidnightP/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-01-15T13:02:55Z","updated_at":"2018-03-10T23:53:53Z","closed_at":"2018-03-10T23:53:53Z","author_association":"NONE","body":"In the container my page component I'm loading the places script including my key and language. \r\n\r\n```\r\nconst key = process.env.GOOGLE_API_KEY\r\n    const language = 'NL'\r\n\r\n    const placesUrl = `https://maps.google.com/maps/api/js?key=${ key }&language=${ language }libraries=places&sensor=false`\r\n\r\n    load(placesUrl, { async: true }, (err, script) => {\r\n      if (err) { console.log('error in load-script: ', err) }\r\n      else { console.log('succes in load-script script.src: ', script.src) }\r\n    })\r\n```\r\n\r\nThen in a child container I'm using the ```<GoogleMap />```-tag feeding it only an options object and defaultCenter and defaultZoom. In my console I receive the following error:\r\n\r\n> You have included the Google Maps API multiple times on this page. This may cause unexpected errors.\r\n> Google Maps API warning: NoApiKeys\r\n> Google Maps API warning: SensorNotRequired\r\n\r\nAlso, I recieve an error for the searchField itself, copied from the searchbox example in readme:\r\n\r\n> Uncaught ReferenceError: google is not defined\r\n\r\nCan I feed options and defaults in GoogleMap component, even after the script was already loaded? Is there a working example with the searchField included ? "}}
{"actor":{"display_login":"itsmichaeldiego"}}