views:

19

answers:

1

Where in the flow of execution does the initialize() function need to appear in the code to allow a Google Map v3 API map to be loaded through a JQuery .load call.

The code I have at the moment looks like this

$('#maplink').click(function(){
$('.fades').fadeOut('slow');
$('#googleMap').show();
$('#googleMap').load("map.html");
initialize();
});`

but this isn't initializing the map after the AJAX call.

Any help would be appreciated :)

mm

A: 

I'm not very good with jQuery, but I'm not really sure why you want jQuery to load the map. If you are trying to make the map load asynchronously google provides a way http://code.google.com/apis/maps/documentation/javascript/basics.html#Async Other than that. I can't be much help. Sorry

Phil