Utilizing the Google Maps API to generate a map where users can outline the perimeter. An error only appears when the page is live. It appears that the page attempts to load the map before receiving it from the API, resulting in an error.
I've attempted moving the API script further down within the DOM, even after the API call. I've also experimented with cancelling the callback function, but unfortunately, there have been no changes.