> I have used Firebug to try to determine where the issue is in my code, and
> it seems to get stuck in the select_location() function as soon as it
> executes the map.setCenter() function.
No wonder because 'map' in select_location() refers to a <div> node.
var map = document.getElementById("map_canvas");
Delete that line because 'map' is defined inside intialize() function
correctly. You should however define map in global scope in order to
make it accessible by select_location() function.
A simple modification is to replace
var map = new google.maps.Map(...
by
window.map = new google.maps.Map(...
--
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.