Jump to content

javascript error for google maps


Recommended Posts

Hello i am adding a googlemap but i am getting an error onb line 1 witch i can work out. please need help and thankyou

<script src="https://map.googleleapis.com/maps/api/js?v-3exp&sensor=false">
var map;
function initMap() {
  var mapOptions = {
zoom: 8,  
center: new google.maps.latLng -34.397, 150.644),
map = new google.maps.Map(document.getElementByid("map"), {
<script> async defer src="https//maps.googleleapis.com/maps/js"></script>

this is my html 

<section id="boxes">
      <div class="container">
        <div class="map">	
    <script src="./map.js"></script>
	<h3>Australia Weather charts</h3>


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...