Hi I got "google is not defined" this error in infobox.js, and show the error is in
infobox.prototype = new google.maps.overlayview()
Here is my code in HTML, hope I include the library right.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="map"></div>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB9Mpf-bWJn8ym13pLnRdHSNHymRrvOuiw&callback=initMap">
</script>
<script src="library/infobox.js" type="text/javascript"></script>
<script src="script.js"></script>
</body>
</html>
I called the google map API and infobox.js in script.js file. Thanks in advance!