htmlについて質問します。 何度行っても地図が出てきません。 どこかに間違いがあるでしょうか? 添削をお願いします。 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>GoogleMapsAPI<title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initMap&v=weekly" defer></script> <script> var map; function initMap() {map = new google.maps.Map(document.getElementById("map"), { center: {lat: 35.681236, lng: 139.767125}, zoom:12, }); marker1=new google.maps.Marker({ map:map, position:{lat: 35.710063, lng: 139.810700}, }); } initMap(); </script> <style> #map{ width:100%; height:300px; } </style> </head> <body> <div id="map"></div> </body> </html>
JavaScript