If you disable Firebug and load the map then check the Error Console
you'll see the error 'console is not defined' line 31.
(Error Console is Tools menu > Error Console).

Try something like:

if(typeof(console)!=='undefined'){
 console.log('this will not cause the map to fail if console is not
defined');
}

http://www.google.co.uk/search?x=0&y=0&q=javascript+typeof&ie=UTF-8&oe=UTF-8

Martin.


On Mar 1, 2:17 pm, magno ferreira <[email protected]> wrote:
> Hi, it seems I'm going through this problem shown 
> here:http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
> but iI can't reply there (don't know why)
>
> The fact is that I'm trying to center the map by an address inside an
> <p> tag
> and calculate the distance to another address. But it only works if
> the javascript console is enable..
> (in chrome it works fine)
>
> I've been trying what the other thread suggests but i couldn't find
> the right way to call the initialize function
> and the script for the map.
> my example is at:http://dcc.ufrj.br/~magnoferreira/testaMAPA4.html
>
> Any suggestions?
>
> Thanks in advantage

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