HTML example for the Simple Mapstraction tutorial

| | |

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
// As described at http://www.wholemap.com/blog/mapstraction-tutorial
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Mapstraction Demo</title>
    // We'll start out using Google
    <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAA...-OUw" type="text/javascript"></script>
    <script type="text/javascript" src="../common/mapstraction.js"></script>

  </head>
  <body>
    <div id="simplemap" style="width: 500px; height: 300px"></div>
    <script type="text/javascript">
      // Connect the 'simplemap' division to a Googlemap,using Mapstraction
      var mapstraction = new Mapstraction('simplemap','google');

      // Create a point called 'firstPoint' located in the middle of Toronto
      var firstPoint = new LatLonPoint(43.671844983221604,-79.38823699951172);

      // Display the map centered on the 'firstPoint' we created above, with a Google zoom level of 15
      mapstraction.setCenterAndZoom(firstPoint, 15);
    </script>
  </body>
</html>