cool, thank you. Sorry, I should have looked it up.

On Jul 26, 2010, at 5:08 PM, [email protected] wrote:

> On Jul 26, 1:56 pm, David Giglio <[email protected]> wrote:
>> I'm getting the hang of this, but am confused about when I can use certain 
>> functions. For instance, why does bounds here return undefined? It seems 
>> like I have to wait for the map to fully appear, but I don't 
>> understand...does the map loading completely trigger an event I can use to 
>> put my code after?
> 
> 
> This has come up before:
> http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/d49fc31310695c69/3eddd9e70f7f3d4a?lnk=gst&q=getBounds#3eddd9e70f7f3d4a
> 
>  -- Larry
> 
>> 
>> function initialize(lat,lng,zoom){
>> 
>>         var centerLatLng = new google.maps.LatLng(lat,lng);
>> 
>>         var myOptions = {
>>                 zoom: zoom,
>>                 center: centerLatLng,
>>                 mapTypeId: google.maps.MapTypeId.TERRAIN
>>         }
>> 
>>         var map = new google.maps.Map(document.getElementById("main_map"), 
>> myOptions);
>> 
>>         alert(map.getBounds());
>> 
>> 
>> 
>> }- Hide quoted text -
>> 
>> - Show quoted text -
> 
> -- 
> 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.
> 
> 

-- 
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