title: Google Map not working
body: <p>I have this simple app that will try to load a google map.  But when I click the link to view the map.  I got this error.</p>
  
  <p>ReferenceError: GBrowserIsCompatible is not defined
  [Break On This Error]   </p>
  
  <p>if (GBrowserIsCompatible()) {</p>
  
  <p>Here are my codes</p>
  
  <p>------------ scripts -------------</p>
  
  <pre><code>&lt;script type="text/javascript" 
  src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBQ8OCC8En5vNHod25Ov3Qs5E1v7NPRSsg&amp;sensor=true"&gt;
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
      var map;
      var geocoder;
  
      //Show the google map
      function initialize() {
          if (GBrowserIsCompatible()) {
              map = new GMap2(document.getElementById("divMap"));
  
              map.setUIToDefault();
              geocoder = new GClientGeocoder();
          }
      }
  
      //Show default address on map
      function showTheMap() {
          document.getElementById('divMap').style.display = "block";
          initialize();
          var address = document.getElementById("spAddress1").innerHTML;
          geocoder.getLatLng(
              address,
              function (point) {
                  if (!point) {
                      alert(address + " not found");
                  }
                  else {
                      map.setCenter(point, 15);
                      var marker = new GMarker(point);
                      map.addOverlay(marker);
                      marker.openInfoWindow(address);
                  }
              }
          );
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>------------ HTML body ---------------</p>
  
  <pre><code>    &lt;span id="spAddress1" runat="server" ClientIDMode ="Static"&gt;&lt;/span&gt;
      &lt;a onclick="showTheMap()" style="cursor: pointer;"&gt;
      &lt;span style="text-decoration:underline;"&gt;Click here to view map &lt;/span&gt;
      &lt;/a&gt;
  
      &lt;div id="divMap" style="display: none; width: 100%; height: 500px;top: -220px"&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>thanks </p>
  
  <p>Rjuy</p>