<script type="text/javascript">
    var map = null;
    var geocoder = null;

    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(1.315154, 103.849983), 10);
        geocoder = new GClientGeocoder();
      }
    }
    function showAddress(address) {
      var address = 'Greenwood Avenue 8 Singapore';
      if (geocoder)   {
        geocoder.getLatLng(address,function(point)  {
            if (!point)   {
              //alert("google map alert '" + address + "' not found.
please set the restaurant address.");
            }   else   {
              map.setCenter(point, 17);
              var marker = new GMarker(point, {draggable: true,
bouncy:true, autoPan:true, bounceGravity:10});
              map.addOverlay(marker);
              GEvent.addListener(marker, "click", function()
              {
                                map.openInfoWindowHtml(point,'<br /><div 
align="right">' + address
+ '</div>');
                                var obj=map.getInfoWindow();
                                obj.reset(null,null,new GSize(100,50));
              });
                                GEvent.trigger(marker, "click");
            }
          }
        );
      }
    }
    </script>
the firebug is report:
------------------------------
a is null
[Break on this error] Lf.prototype=new Lj;Lf.prototype.fromLat...+f)/
(1-f))*-c.Vu[b]);return new O(e,g)};
------------------------------
how can i fix it to work?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to