HTML and CSS files

This app has virtually no styling, as it is only designed to show how the API works. Let's quickly build out the HTML and CSS files.

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="googlemaps.css" rel="stylesheet">
    <title>Google Maps API</title>
  </head>
  <body>
    <h1>Maps Example</h1>
    <div id="map_canvas"></div>
  </body>
</html>

googlemaps.css

#map_canvas {
    width: 600px;
    height: 600px;
  }

Last updated