Hi everyone,
First of all, it is very exciting to be part of this!
I’m playing with the OpenAI API and I asked it to create a simple Google Maps page as follows: “Display a simple Google Maps centered around São Paulo.”
Surprisingly it typed in the code I was expecting, however I see an error in the console that says:
sandbox.html:1 Uncaught ReferenceError: google is not defined
at eval (eval at <anonymous> (sandbox.js:4), <anonymous>:1:11)
at eval (<anonymous>)
at sandbox.js:4
Part of the code is apparently importing it like this:
/* Import the Google Maps javascript libraries first */
var script = document.createElement('script');
script.src = 'https://maps.googleapis.com/maps/api/js?key=
So I was expecting it to successfully load the library at least and then fail to display the map because no key has been provided.
Any ideas on how I can successfully make it work?
Thanks in advance!