What version of IE are you using?. I have seen this issue on IE7 and
IE8. I was able to get around this issue by placing a time delay for
about 100ms before loading the goggle map to make sure the Google API
is fully loaded.
Sample.GoogleMap = function(){
var timeToLoad = setTimeout("loadMap()",100);
};
function loadMap(){
var myLatLng = new google.maps.LatLng(38.5111, -96.8005);
var myOptions = {
zoom: 4,
center: myLatLng,
mapTypeId: google.maps.MapTypeId.TERRAIN
};
map = new
google.maps.Map(document.getElementById("map_canvas"),myOptions);
}
On Nov 18, 10:22 am, Sebastián Caggiano <[email protected]> wrote:
> Hi, I'm having trouble with internet explorer since when I execute the
> page (asp.net development service hosted) it makes a javascript error:
> 'google' not defined. After fining out I realize that it's not
> downloading and executing the google scripts, if a
> typehttp://maps.google.com/maps/api/js?sensor=falsein the browser it doesn
> ´t download the file the first time, if a click again it does. I
> supposed the browser in runtime is having trouble downloading this
> script, how can I fix it?, thank you!.
--
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.