6 <title>Asynchronous Loading</title>
7 <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
9 <link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
11 function initialize() {
14 center: new google.maps.LatLng(-34.397, 150.644),
15 mapTypeId: google.maps.MapTypeId.ROADMAP
18 var map = new google.maps.Map(document.getElementById('map-canvas'),
22 function loadScript() {
23 var script = document.createElement('script');
24 script.type = 'text/javascript';
25 script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&' +
26 'callback=initialize';
27 document.body.appendChild(script);
30 window.onload = loadScript;
35 <div id="map-canvas"></div>