When using the Google Maps API, everything works fine on Chrome and Firefox but Internet Explorer encounters an issue. I am loading the API with jQuery and calling initialize();
The error message in IE6 states: error 'google' undefined
function initialize() {
var latlng = new google.maps.LatLng(39.979639,116.30209);
var myOptions = {
zoom: 12,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
}
$(document).ready(function(){
initialize();
});