Hi there,

I tried setting the center by a form field and found out the map didn't do 
anything at all.
.
Further investigating, I found out that..   

* function bindInfoWindow(marker, map, infoWindow, html) {
      google.maps.event.addListener(marker, 'click', function() {
          var darwin = new google.maps.LatLng(-12.461334, 130.841904);
          map.setCenter(darwin); 
      });
    }*

works, but 
*
    function bindInfoWindow(marker, map, infoWindow, html) {
      google.maps.event.addListener(marker, 'click', function() {
        moveToDarwin();
      });
    } 
    function moveToDarwin() {
        var darwin = new google.maps.LatLng(-12.461334, 130.841904);
      map.setCenter(darwin);
    }*
 
doesn't - although they should do exactly the same.
 
Even a simple "map.setZoom(5)" in a onBlur of a form field doesn't work. Is 
there anything more I need to include to reference my map?

Thanks!

 
 


-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to