title: googleMap JavaScript V3
body: <p>When I use the above code on v2 it is working, but when I use it in V3 map, I cannot track the location; latitude and longitude are not even returned.</p>
  
  <p>Can anyone tell me why it is happening?</p>
  
  <pre><code> function load() 
   {
        if (GBrowserIsCompatible())
        {
          var map = new GMap2(document.getElementById("map"));
          map.addControl(new GSmallMapControl());
          map.addControl(new GMapTypeControl());
          var center = new GLatLng(48.89364,2.33739);
          map.setCenter(center, 15);
          geocoder = new GClientGeocoder();
          var marker = new GMarker(center);  
          map.addOverlay(marker);
          document.getElementById("lat").innerHTML = center.lat().toFixed(5);
          document.getElementById("lng").innerHTML = center.lng().toFixed(5);
          }
      }
  
         function showAddress(address)
         {
         var map = new GMap2(document.getElementById("map"));
         map.addControl(new GSmallMapControl());
         map.addControl(new GMapTypeControl());
         if (geocoder) 
         {
          geocoder.getLatLng(address,function(point) 
                                       {
                                        if (!point)
                                        {
                                              alert(address + " not found");
                                        } 
                                      else 
                                      {
                                      document.getElementById("lat").innerHTML = point.lat().toFixed(5);
                                      document.getElementById("lng").innerHTML = point.lng().toFixed(5);
                                      map.clearOverlays()
                                      map.setCenter(point, 14);
                                      var marker = new GMarker(point);  
                                       map.addOverlay(marker);
                                      }
                                      }
                             );
        }
      }
      &lt;/script&gt;
  </code></pre>