title: google maps v3 markers and infoboxes not showing
body: <p>I've created a map with the Google Maps API but despite copying existing Javascript from "v3_simpleMap_InfoBoxA.html" (which renders fine in a browser) and tweaking I am not able to get the markers to display on the map. The map renders and the Javascript has been validated with JSLint - no errors.</p>
  
  <p>I was able to get a single point to display with an Infobox, but not multiple. I am not that good at Javascript, my apologies, but have scoured Stackoverflow and cannot find the solution. Here is a code snippet:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script src="https://maps.googleapis.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  &lt;script src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.13/src/infobox.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  var ib = new InfoBox();
  
  function initialize() {
  
  var mapOptions = {
    zoom: 12,
    center: new google.maps.LatLng(41.708833, -70.152917),
    mapTypeId: google.maps.MapTypeId.SATELLITE,
    mapTypeControl        : true,
     mapTypeControlOptions:     {
         style  : google.maps.MapTypeControlStyle.DEFAULT
  },
     panControl            : false,
     rotateControl         : false,
     scaleControl          : false,
     streetViewControl     : false,
     zoomControl           : true,
     zoomControlOptions: {
        style: google.maps.ZoomControlStyle.DEFAULT,
        position: google.maps.ControlPosition.RIGHT_CENTER
    }
  };
  var map = new google.maps.Map(document.getElementById('map_canvas'),mapOptions);
  
      google.maps.event.addListener(map, "click", function() { ib.close() ;});
  var sites = [
    ['Chase Garden Creek', -70.22610, 41.73147, 11, '&lt;p&gt;Chase Garden Creek &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/chase-garden-creek"&gt;About Chase Garden Creek&lt;/a&gt;&lt;/p&gt;'],
    ['Howes Pasture', -70.19919, 41.73693, 10, '&lt;p&gt;Howes Pasture &lt;br/&gt;Dennis &lt;br/&gt;&lt;a href="http://www.testsite.com/properties/howes-pasture/"&gt;About Howes Pasture&lt;/a&gt;&lt;/p&gt;'],
    ['Bass River Park', -70.17955, 41.66551, 9, '&lt;p&gt;Bass River Park &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/bass-river-park"&gt;About Bass River Park&lt;/a&gt;&lt;/p&gt;'],
    ['Coles Pond at Crowes Pasture', -70.13601, 41.75482, 8, '&lt;p&gt;Coles Pond &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/coles-pond"&gt;About Coles Pond&lt;/a&gt;&lt;/p&gt;'],
    ['Paddocks Path', -70.17391, 41.74343, 7, '&lt;p&gt;Paddocks Path &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/paddocks-path"&gt;About Paddocks Path&lt;/a&gt;&lt;/p&gt;'],
    ['Dorothy Connors Bell Conservation Area', -70.16389, 41.71962, 6, '&lt;p&gt;Dorothy Connors Bell Conservation Area &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/"&gt;About DCB Conservation Area&lt;/a&gt;&lt;/p&gt;'],
    ['Sesuit Neck Road', -70.17122, 41.74698, 5, '&lt;p&gt;Sesuit Neck Road &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/sesuit-neck-road"&gt;About Sesuit Neck Road&lt;/a&gt;&lt;/p&gt;'],
    ['Old Fort Field', -70.19989, 41.73325, 4, '&lt;p&gt;Old Fort Field &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/old-fort-field"&gt;About Old Fort Field&lt;/a&gt;&lt;/p&gt;'],
    ['Black Foot Path', -70.17214, 41.74350, 3, '&lt;p&gt;Black Foot Path &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/black-foot-path"&gt;About Black Foot Path&lt;/a&gt;&lt;/p&gt;'],
    ['Swan River Road', -70.15602, 41.65743, 2, '&lt;p&gt;Swan River Road &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/swan-river-road"&gt;About Swan River Road&lt;/a&gt;&lt;/p&gt;'],
    ['Coles Pond Bog', -70.14153, 41.75368, 1, '&lt;p&gt;Coles Pond Bog &lt;br/&gt;Dennis &lt;br/&gt; &lt;a href="http://www.testsite.com/properties/coles-pond-bog"&gt;About Coles Pond Bog&lt;/a&gt;&lt;/p&gt;']
  ];
  setMarkers(map, sites);
              infowindow = new google.maps.InfoWindow({
      content: "loading..."
  
  });
  }
  
  function createMarker(site, map){
      var siteLatLng = new google.maps.LatLng(site[1], site[2]);
      var marker = new google.maps.Marker({
          position: siteLatLng,
          map: map,
          // Add visible and draggable below
          draggable: true,
          visible: true,
          title: site[0],
          zIndex: null,
          // Above, changed from site [3] - no effect
          html: site[4] /*,  Site down at test time, skip icon
          icon: "http://www.testsite.com/wp-content/uploads/2014/12/favicon.jpg" */
      });
   // Begin example code to get custom infobox
      var boxText = document.createElement("div");
      boxText.style.cssText = "border: 1px solid black; margin-top: 6px; background: white; font-family:Arial; font-size:10px; padding: 5px; border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px;";
      boxText.innerHTML = marker.html;
  
      var myOptions = {
               content: boxText,
              disableAutoPan: false,
              maxWidth: 0,
              pixelOffset: new google.maps.Size(-140, 0),
              zIndex: null,
              boxStyle: { 
                background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.12/examples/tipbox.gif') no-repeat",
                opacity: 0.75,
                width: "280px"
               },
              closeBoxMargin: "10px 2px 2px 2px",
              closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
              infoBoxClearance: new google.maps.Size(1, 1),
              setVisible: true,
              pane: "floatPane",
              enableEventPropagation: false
      };
      // end example code for custom infobox
      google.maps.event.addListener(marker, "click", function (e) {
       ib.close();
       ib.setOptions(myOptions);
       ib.open(map, this);
      });
      return marker;
  }
  
  function setMarkers(map, markers) {
  
   for (var i = 0; i &lt; markers.length; i++) {
     createMarker(markers[i], map);
   }
  }
  
  google.maps.event.addDomListener(window, 'load', initialize);
       &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
   &lt;html&gt;
     &lt;head&gt;
       &lt;title&gt;www.testsite.com test file March 29, 2015&lt;/title&gt;
       &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"&gt;
       &lt;meta charset="utf-8"&gt;
       &lt;style&gt;
         html, body, #map_canvas {
           margin: 0;
           padding: 0;
           height: 100%;
         }
       &lt;/style&gt;
            &lt;/head&gt;
     &lt;body&gt;
     &lt;div id="map_canvas"&gt;&lt;/div&gt;
     &lt;/body&gt;
   &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>